Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Matthias70] randomize includes?

Quote Reply
Re: [Matthias70] randomize includes? In reply to
Hi,

How about this:

Code:
sub {
my @list = ('include_reviews', 'include_news');
return Links::SiteHTML::display($list[rand @list]);
}

(I left a .html in the other global, so was trying to load include_news.html.html, , which would cause a fatal error :))

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!
Subject Author Views Date
Thread randomize includes? Matthias70 2958 Jan 5, 2008, 8:23 AM
Thread Re: [Matthias70] randomize includes?
Andy 2882 Jan 5, 2008, 8:45 AM
Thread Re: [Andy] randomize includes?
Matthias70 2878 Jan 5, 2008, 9:01 AM
Thread Re: [Matthias70] randomize includes?
Andy 2894 Jan 5, 2008, 9:03 AM
Thread Re: [Andy] randomize includes?
Matthias70 2894 Jan 5, 2008, 9:08 AM
Thread Re: [Matthias70] randomize includes?
Matthias70 2876 Jan 5, 2008, 11:13 AM
Post Re: [Matthias70] randomize includes?
Andy 2867 Jan 5, 2008, 11:25 AM