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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates