9 years ago
Topic

Hello. I need add a Field to images... like Caption, but called Attribution (Photo Autor), i tried  many times but don´t work for me. it´s possible to do or not?

Thanks

Get a Book for SEBLOD
572 Posts
_jrmo
9 years ago
1
Level 1

Hi tribalex,

I think you need to provide some more information here about how your content type is set up, and exactly what you are trying to achieve, because there are many ways to do what you are trying to do.

Here's one solution, assuming you want to store the "attribution" as an attribute of the <img> object in your HTML markup.

You will need 2 fields. 1 for uploading the image file, and 1 text field for storing the Attribution.

You can then apply the HTML typography plugin to your image field in your Content View (or Item View). 

Click the +

Add this code: <img src="/$cck->getValue('name_of_image_field')" attribution="$cck->getValue('name_of_attribution_field')" />

Thanks,

James

9 years ago
0
Level 2

Thanks for answer. This it´s the problem... My customer have a site of Financial News, has made an alliance with Microsoft to appear in this portal. The Images must be a Field called ATTRIBUTION (Photo Autor - obviously different for each). And this field appears in the RSS FEED, in this way, Micrsosoft "catch" the feed and displays it on your platform. Attach image from validator of Microsoft, to explain little more... http://s29.postimg.org/il4skqp0n/field.gif

I am not a programmer and I have not found a way to do directly in joomla ... so I think this is my best option. Thanks

Get a Book for SEBLOD