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

Re: [Andy] Active Text / Title URL link global

Quote Reply
Re: [Andy] Active Text / Title URL link global In reply to
Thanks Andy.

I just popped this on the end:

Code:
else { return qq|NA|; }

So, just out of interest, why is using a global better than calling it from a template like I was doing below?

Code:
<%if Title eq 'Adam'%><a href="http:///www.adams-site.com">Adam's Website</a>
<%elseif Title eq 'Brian'%><a href="http://www.brians-site.com">Brian's Website</a>
<%else%>NA
<%endif%>
Subject Author Views Date
Thread; hot thread Active Text / Title URL link global MJB 13683 Aug 19, 2010, 1:12 PM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
MJB 13499 Aug 19, 2010, 3:43 PM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
pugdog 13329 Sep 12, 2010, 6:57 PM
Thread; hot thread Re: [pugdog] Active Text / Title URL link global
MJB 13432 Sep 13, 2010, 12:18 AM
Post; hot thread Re: [MJB] Active Text / Title URL link global
MJB 13336 Sep 13, 2010, 12:25 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13400 Sep 13, 2010, 12:58 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13317 Sep 13, 2010, 6:32 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13354 Sep 13, 2010, 6:37 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13343 Sep 13, 2010, 6:40 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13334 Sep 13, 2010, 6:42 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13350 Sep 13, 2010, 6:47 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13333 Sep 13, 2010, 6:50 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13334 Sep 13, 2010, 6:55 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13358 Sep 13, 2010, 6:59 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13443 Sep 13, 2010, 7:13 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13419 Sep 13, 2010, 8:15 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13295 Sep 13, 2010, 8:38 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
MJB 13246 Sep 13, 2010, 9:17 AM
Thread; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13330 Sep 13, 2010, 9:52 AM
Thread; hot thread Re: [Andy] Active Text / Title URL link global
MJB 13225 Sep 13, 2010, 11:05 AM
Post; hot thread Re: [MJB] Active Text / Title URL link global
Andy 13221 Sep 13, 2010, 11:55 AM