Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Specific Link Details

Quote Reply
Specific Link Details
Set up LinkType per instructions but form name/values as CompInfo and CompInfoNews.

In leiu of Detailed column, I have NewsItem (which works)

include_form is

Company Info Only <input type="radio" name="LinkType" value="<%if CompInfo%><%CompInfo%><%endif%>"><br>
Company Info & News <input type="radio" name="LinkType" value="<%if CompInfoNews%><%CompInfoNews%><%endif%>">

It's not passing the value - is this miss configured??

Thanks - John
Quote Reply
Re: [gatman] Specific Link Details In reply to
Try:

Company Info Only <input type="radio" name="LinkType" value="CompInfo" <%if LinkType eq "CompInfo"%>checked<%endif%>><br>
Company Info & News <input type="radio" name="LinkType" value="CompInfoNews" <%if LinkType eq "CompInfoNews"%>checked<%endif%>>

Laura.
The UK High Street
Quote Reply
Re: [afinlr] Specific Link Details In reply to
Yep - Works - Thanks
------------------------------------

Here is my total setup for others benefit:

1- Create Link Column - Example Name: LinkType
2- Col Type - Enum
3- Col Values/FormNames/FormValues - use same - Example: CompInfo | CompInfoNews (separated by hard line break or comma - not the "|" character I show)
4- Form Type - Radio
5- Not Null
6- Default - CompInfo
7- Hashed

Modify include_form.html

Company Info Only <input type="radio" name="LinkType" value="CompInfo" <%if LinkType eq "CompInfo"%>checked<%endif%>><br>
Company Info & News <input type="radio" name="LinkType" value="CompInfoNews" <%if LinkType eq "CompInfoNews"%>checked<%endif%>>

Modify link.html

<%if LinkType eq CompInfoNews%>
<a href="<%detailed_url%>"><%Title%></a>
<%endif%>
<%if LinkType eq CompInfo%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%endif%>