Difference between revisions of "IMG Tag"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
;IMG Tag:
;IMG Tag:
:<tt><nowiki>IMG</nowiki></tt><u><b>{$</b></u>''objectName''<u>.</u>''imageFieldName''<u><b>}</b></u><tt></tt>
:<tt><nowiki>IMG</nowiki></tt><u>{$</u>''objectName''<u>.</u>''imageFieldName''<u>}</u><tt></tt>


where:
where:
:* '''objectName -''' The name of the current object. (This variable is in {{Velocity}} format. The object name effectively creates a namespace, ensuring that there is no conflict with another variable that might have the same name.)
:* '''objectName -''' The name of the current object. (This variable is in {{^Velocity}} format. The object name effectively creates a namespace, ensuring that there is no conflict with another variable that might have the same name.)
:* '''imageFieldName -''' The name of the field in the current record that contains the image to display, joined to the object name by a "dot" (.).
:* '''imageFieldName -''' The name of the field in the current record that contains the image to display, joined to the object name by a "dot" (.).


{{Important|The braces <u>{</u>...<u>}</u> and other underlined characters in this syntax are ''literals''. Type them in exactly as shown.}}
{{Important|This syntax uses braces: <u>{</u>...<u>}</u>. The braces and other underlined characters in this syntax are ''literals''. Type them in exactly as shown.}}


;Result:
;Result:
:The URL for the image is inserted into the generated page. When viewed, the image is displayed.
:The URL for the image is inserted into the generated page. When viewed, the image is displayed.

Latest revision as of 21:01, 13 November 2013

IMG Tag
IMG{$objectName.imageFieldName}

where:

  • objectName - The name of the current object. (This variable is in Velocity format. The object name effectively creates a namespace, ensuring that there is no conflict with another variable that might have the same name.)
  • imageFieldName - The name of the field in the current record that contains the image to display, joined to the object name by a "dot" (.).

Warn.png

Important: This syntax uses braces: {...}. The braces and other underlined characters in this syntax are literals. Type them in exactly as shown.

Result
The URL for the image is inserted into the generated page. When viewed, the image is displayed.