Copy link to clipboard
Copied
Is there a way to set tag attributes in a web app?
I've added an image that I'd like to set the align attribute to left - and also set the alt atribute. I see that it writes an empty alt attribute in the code - but I can't figure out how to add the attributes in the web app configuration on the {tag_image} - Can someone help or point me to documentation if this is possible? Thanks!
As you noticed, {tag_image} outputs a whole <img> and there is no way to edit it. However, you can use {tag_image_value} to get the path to the image and insert that into your own <img src='{tag_image_value}' /> and then use {tag_name_nolink} if you want to insert the Web App item name for the ALT attribute and specify your own value for the align attribute.
This option is not very clearly documented, but you can see it in use on the KB article:
http://kb.worldsecuresystems.com/242/bc_2428.html
Kar
...Copy link to clipboard
Copied
As you noticed, {tag_image} outputs a whole <img> and there is no way to edit it. However, you can use {tag_image_value} to get the path to the image and insert that into your own <img src='{tag_image_value}' /> and then use {tag_name_nolink} if you want to insert the Web App item name for the ALT attribute and specify your own value for the align attribute.
This option is not very clearly documented, but you can see it in use on the KB article:
http://kb.worldsecuresystems.com/242/bc_2428.html
Karim