Sunday, July 28, 2013

Refer LOGO Location From XML

Follow the below steps for ‘Refer LOGO location from XML’
  1. Insert a dummy image in template.
  2. In the format picture dialog box select the web tab.  
  3. Enter the following syntax in the Alternative text region to reference the image URL:



url: {IMAGE_LOCATION}

Where IMAGE_LOCATION is an element from our XML file that holds the full URL to the image .
We can also build a URL based on multiple elements at run time.
Just use the Concat function to build the URL string.

For example:


url: {concat(SERVER,’ / ‘,IMAGE_DIR,’ / ‘,IMAGE_FILE)}
This method can also be used with the OA_MEDIA reference as follows:


url: {concat{‘${OA_MEDIA}’ , ‘ / ‘,IMAGE_FILE)}

No comments:

Post a Comment