I need some help with a checkbox values:
I have a checkbox field / column in my database called "Site_Type". There are several different values on this "Site_Type" field. Such as "free", "blog", "resource" etc..
It works just fine if I use <%Site_Type%> on a template page, it then shows all values for this column / field.
So if a link has the option "free" and "blog" selected on this field, they both show up on template.
BUT I need to be able to configure each of the values for "Site_Type" differently.
What I want is:
<%if Site_Type eq 'Free'%><a href="/free.html">Free</a><%endif%>
<%if Site_Type eq 'Blog'%><a href="/blog.html">Blog</a><%endif%>
BUT
It does NOT work if 2 or more values are selected in "Site_Type".
It does work if only 1 value is selected in "Site_Type".
How can I make it show up all values using a IF tag? Am I using the wrong tags?
Thanks
I have a checkbox field / column in my database called "Site_Type". There are several different values on this "Site_Type" field. Such as "free", "blog", "resource" etc..
It works just fine if I use <%Site_Type%> on a template page, it then shows all values for this column / field.
So if a link has the option "free" and "blog" selected on this field, they both show up on template.
BUT I need to be able to configure each of the values for "Site_Type" differently.
What I want is:
<%if Site_Type eq 'Free'%><a href="/free.html">Free</a><%endif%>
<%if Site_Type eq 'Blog'%><a href="/blog.html">Blog</a><%endif%>
BUT
It does NOT work if 2 or more values are selected in "Site_Type".
It does work if only 1 value is selected in "Site_Type".
How can I make it show up all values using a IF tag? Am I using the wrong tags?
Thanks