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
<%-- loop Region --%>
<img border="0" src="<%config.build_root_url%>/flags/<%Region%>.gif" height="14" width="25" border=0></a>
<%-- endloop --%>
<%endif%>
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%>