Image caption from file manager
Permalink Browser Info Environment
Hi Jordan, might it be possible to add the Description attribute from file manager to the Image?
I saw this Add-On:http://www.concrete5.org/marketplace/addons/image-captions/...
but it don't use the Description attribute.
Regards
Torsten
I saw this Add-On:http://www.concrete5.org/marketplace/addons/image-captions/...
but it don't use the Description attribute.
Regards
Torsten
Type: | Discussion |
---|---|
Status: | New |
Hi Jordan,
when i add the code (in controller.php) the page crashes (edit bar is gone, elements are wrong aligned).
I attached the block.
Thanks
Torsten
when i add the code (in controller.php) the page crashes (edit bar is gone, elements are wrong aligned).
I attached the block.
Thanks
Torsten
The example code I gave is just an example -- you will need to change the name of the fields in view.php.
If you change $field_2_image->description to $field_1_image->description, that should fix it.
Best,
Jordan
If you change $field_2_image->description to $field_1_image->description, that should fix it.
Best,
Jordan
First, in controller.php, find this line of code:
...and just ABOVE that line of code, add this new line:
Then, in view.php, you can output the description wherever you want with this code:
Hope that helps.
-Jordan