I've read the help on page templates and can see that we can hardcode a logo, other image, of background image into the design.
I know that we can define text variables and display these on the page template.
But what do we do if we have images that vary by publication, and we want to display one of those dynamic images on a location on the page?
For example, a cover image of the product or additional symbols or logos specific to the publication.
Is it possible to define an image variable that can be placed on the page layout design?
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I am also interested in the answer to this question.
@Mike-E : there could be two possible solutions to this:
Option 1: if you know that all the maps are of type bookmap, then generally the images that should go on front page can be under frontmatter or some xpath under the bookmap xml
In this case, you can create a metadata field and use the xpath to the image and use it in the template page layout - check this document to know more about metadata fields
Option 2: if the map can be ditamap or bookmap, and lets say the image cannot be defined in the map xml then you may use User variable - defining the image path as variable in the output preset, steps as given below
The img tag you define in the variable has to literally be the tag. I was confused at first about this so I thought I would write a comment.
i.e.
@Mike-E Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes
Views
Likes
Replies