Suggestion to show file description as caption
Permalink Browser Info Environment
This add-on is a really nice improvement to the Core Image block.
I have hacked my copy to display the file Description property if the Caption is empty. This gives me the option of keeping the information with the image file rather than in the block where it is used. This could be added to the Edit Image Caption form as checkboxes to use the file Description, the Title, or the content of the Image Caption Tiny-MCE block. It would also be nice if there were a button to update file Description or Title from the Image Caption.
Finally, it would be nice if the content of the Title attribute of the <img> tag could be added to the Edit form to give the option of showing a caption as a tooltip.
I have hacked my copy to display the file Description property if the Caption is empty. This gives me the option of keeping the information with the image file rather than in the block where it is used. This could be added to the Edit Image Caption form as checkboxes to use the file Description, the Title, or the content of the Image Caption Tiny-MCE block. It would also be nice if there were a button to update file Description or Title from the Image Caption.
Finally, it would be nice if the content of the Title attribute of the <img> tag could be added to the Edit form to give the option of showing a caption as a tooltip.
Type: | Discussion |
---|---|
Status: | New |
Cool. If you would be willing to share the code with me to show the file description property, I'll try to get that in the next release. As far as the title attribute, thats not going to happen, because I think it goes beyond the intended purpose of this block.
I added
to getContentAndGenerate. Then, if $this->imageCaption is empty, I show $desc else $this->imageCaption. You can see this on my home page athttp://fltconference.org . Hover on an image to see the caption.
$desc = $f->getDescription();
to getContentAndGenerate. Then, if $this->imageCaption is empty, I show $desc else $this->imageCaption. You can see this on my home page athttp://fltconference.org . Hover on an image to see the caption.
Could you show the whole code you added (which file , where)?
Here are the two files I modified. Any cleanup you care to do would be welcome.
Thanks for the files - works well :-)
Any news about the next release?
Regards
Torsten
Any news about the next release?
Regards
Torsten