Gossamer Forum
Home : Products : Gossamer Links : Discussions :

randomize includes?

Quote Reply
randomize includes?
Hi,
I'm trying to randomize two included templates called include_reviews.html and include_news.html

Here is the global I'm using
Code:
sub {
my @list = ('<%include_reviews.html%>', '<%include_news.html%>');
return $list[rand @list];
}

But the global does not include the template, it just prints out the text
<%include_reviews.html%>
or
<%include_news.html%>

Does anyone know how to randomize these templates?

Thanks
Matthias

Matthias
gpaed.de
Subject Author Views Date
Thread randomize includes? Matthias70 2922 Jan 5, 2008, 8:23 AM
Thread Re: [Matthias70] randomize includes?
Andy 2847 Jan 5, 2008, 8:45 AM
Thread Re: [Andy] randomize includes?
Matthias70 2844 Jan 5, 2008, 9:01 AM
Thread Re: [Matthias70] randomize includes?
Andy 2858 Jan 5, 2008, 9:03 AM
Thread Re: [Andy] randomize includes?
Matthias70 2859 Jan 5, 2008, 9:08 AM
Thread Re: [Matthias70] randomize includes?
Matthias70 2841 Jan 5, 2008, 11:13 AM
Post Re: [Matthias70] randomize includes?
Andy 2832 Jan 5, 2008, 11:25 AM