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

Mixed | Direct and Jump links

Quote Reply
Mixed | Direct and Jump links
Hello Again

Wondering if it is possible to assng an enum to each link with the default being y or no and dependiong on which type of link either track it via jump or link straight to it. It may seem simple but I dont wish top break it :)

Thanks
Quote Reply
Re: [ukseo] Mixed | Direct and Jump links In reply to
Should be as simple as that. Just add the ENUM field , and then in link.html, have something like;

Code:
<%if Field_Name eq 'Yes'%>
<a href="<%URL%>" target="_blank"><%Title%></a>
<%else%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank"><%Title%></a>
<%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!