Creating Image Captions

Permalink
I have searched, and googled for a simple way to create image captions in C5. (Also looked for stuff regarding TinyMCE and FCKeditor)

I am not a developer, but it looks like several other CMSs have come up with ways to use the alt or title tags on an image to create a caption (styled using css options in the theme).

Is there a way to do this? Is this something that could be added? Most of the websites I work with write "stories" with one or more embedded images (with captions). On Joomla we use MOSimage Extended, which allows captions and "click for larger version". Anything greater than that and we use a gallery plugin.

This is probably the biggest thing that I have found in attempting to move to C5 (the biggest show-stopper). If I can find a way around it that does not require compled editing in TinyMCE for end users, I think I could move to C5 completely.

Thanks again for a wonderful framework. I wish I knew more, I'd love to contribute this piece.

 
frz replied on at Permalink Reply
frz
hasn't been done in concrete5 yet.

great idea tho.. would love to see something like it.

-frz
Remo replied on at Permalink Reply
Remo
I could do that but I would have to change a few lines in the core since the image block generates all the html stuff in the controller and not in view.php.

makes it quite hard to create such a template!

would you (franz, andrew) change the image block or is there any reason why you've put everything in the controller?
jbrinker replied on at Permalink Reply
Here's an example one of my testbed sites:

http://brinkerhoff.site40.net/index.php?cID=53...

All I did here was add a .caption class to the default.css, and create the image inside it's own DIV. But for a non HTML saavy user, that isn't going to fly (and its a bit limiting, but I could work with caption.left and caption.right, caption.full etc)

I wish I knew more css and any php. Im not even a coder at all, but managed to tweak this beautiful template so that the left and right styles work properly, added some content areas, tweaked layout, etc.

That mambot I mentioned for Joomla is open source (php, js) and has the basic functionality that most ppl would want for "general story writing" - i.e specify image size, caption, mouse over pops up "click for larger view", and clicking gives a js popup with a larger view.

example:

http://www.cayugahabitat.org/content/blogsection/7/28/...

(Different plugin used for gallery type images)
Remo replied on at Permalink Reply
Remo
yeah, like I've posted below, my zoom image block does something similar but I think it doesn't work because I'm working with the dev branch right now.

Andrew, I guess that nifty little method "select" is part of the next release..? Makes the code a bit smaller and much easier to read.
andrew replied on at Permalink Reply
andrew
It probably should be spread out into the view anyway.
okapi replied on at Permalink Reply
okapi
More than three years have passed... but still we have have to tweak the controller.php

Are there any plans to change that in the near future?
Remo replied on at Permalink Reply 1 Attachment
Remo
the latest version of my zoom image block has an optional caption.

but I think I'm using a method (FormHelper::select) which hasn't been published yet. It's probably useless right now ):
kenichi replied on at Permalink Reply
Using zoomimage attached in the above comment, I got the following error...


Fatal error: Call to undefined method LibraryFileBlockController::isError() in /usr/local/share/concrete5/concrete5.3.1.1/concrete/helpers/concrete/asset_library.php on line 36

Do you known how to fix this?