Difference between revisions of "IMG Tag"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric m (Text replace - '{{Velocity}}' to '{{^Velocity}}') |
||
Line 3: | Line 3: | ||
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" (.). | ||
Revision as of 22:02, 16 July 2012
- 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" (.).
- Result
- The URL for the image is inserted into the generated page. When viewed, the image is displayed.