Display image attributes in textarea output
Permalink
Hello,
I'm relatively new to C5. I have a composer form which the user fills in and the content displays on page. One of the fields is a textarea custom page attribute where the user can add text and images. The “Description” attribute of images added is being used to hold photo credit information. How do I display the “Description” attribute of the images added in to textarea output?
Any help would be much appreciated. Thanks.
I'm relatively new to C5. I have a composer form which the user fills in and the content displays on page. One of the fields is a textarea custom page attribute where the user can add text and images. The “Description” attribute of images added is being used to hold photo credit information. How do I display the “Description” attribute of the images added in to textarea output?
Any help would be much appreciated. Thanks.
Hi MrKDilkington,
Thanks for taking the time. I have attached a simple mockup of how the default layout is. The reason I'm looking to do it the way I described is because I already have a customized view template of the image block to display the information and it's working perfectly. So I'd like to stick to using the “Description” field of the image file if possible. Also, I want to give the user some flexibility to have multiple images and to have the text wrap around the sides of the images if chose to.
Thanks.
Thanks for taking the time. I have attached a simple mockup of how the default layout is. The reason I'm looking to do it the way I described is because I already have a customized view template of the image block to display the information and it's working perfectly. So I'd like to stick to using the “Description” field of the image file if possible. Also, I want to give the user some flexibility to have multiple images and to have the text wrap around the sides of the images if chose to.
Thanks.
@JonYeo,
Just to clarify, you are using an Image block custom template that displays the selected image's description attribute? If so, that is how I would recommend doing this.
Currently, file and image attributes like description are not passed to the rich text editor. I am not immediately aware of how to pass them without making core file overrides and most likely a rich text editor plugin.
Just to clarify, you are using an Image block custom template that displays the selected image's description attribute? If so, that is how I would recommend doing this.
Currently, file and image attributes like description are not passed to the rich text editor. I am not immediately aware of how to pass them without making core file overrides and most likely a rich text editor plugin.
@MrKDilkington,
OK, thanks for your help.
OK, thanks for your help.
Do you have an example mockup of how you would like the text, images, and photo credit information to display? I ask because depending on how it is displayed, there may be another way to approach this from what you are currently doing.