Tuesday 24 December 2013

Refer LOGO location from XML Publisher

Follow the below steps for ‘Refer LOGO location from XML’
  1. Insert a dummy image in our template.
  2. In the format picture dialog box select the web tab. 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 runtime. 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