Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Display multiple images on a link

Quote Reply
Display multiple images on a link
Greetings,
I am trying to diplay many region images on a specific link.
I created a field in Links DB called "Region" but defined it as ENUM... but in the form display i defined it as Multi-Select and I put values like: "USA, Canada, UK...".
Now, I was to display USA flag and Canada flag next to a link.
I addeded this code in the link.html template...
However, everytime I select two values or more.. I get the image url below like: http://www.mydomain.com/flags/USACanada.gif
but I want it as you can see... to split them to USA.gif and to Canada.gif
All image flags are uploaded to flags directory to reference them on all images.
So I am missing something over here...

My question, how do I define the "Region" in Links DB to allow multiple selections, and how to break the images when they are displayed on the link inside the category.
thank you
Mark

Code:
<%if Region%>
<%-- loop Region --%>
<img border="0" src="<%config.build_root_url%>/flags/<%Region%>.gif" height="14" width="25" border=0></a>
<%-- endloop --%>
<%endif%>

Last edited by:

Mark2: Oct 9, 2008, 8:08 PM
Subject Author Views Date
Thread Display multiple images on a link Mark2 5205 Oct 9, 2008, 8:03 PM
Post Re: [Mark2] Display multiple images on a link
Andy 5035 Oct 9, 2008, 11:58 PM
Thread Re: [Mark2] Display multiple images on a link
Andy 5050 Oct 10, 2008, 12:22 AM
Post Re: [Andy] Display multiple images on a link
Mark2 5010 Oct 10, 2008, 2:48 PM