• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Need help setting tag attributes in web app

New Here ,
May 08, 2012 May 08, 2012

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!

TOPICS
Web apps

Views

741

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , May 14, 2012 May 14, 2012

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

...

Votes

Translate

Translate
Contributor ,
May 14, 2012 May 14, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines