> When listing articles, is there a way to:
>
> (1) Produce a list of article titles in random order; and
>
> (2) Produce a list of article titles based on the keywords of the current
> article?
>
> Thanks for your help!
>
Mugur, here's my own newbie question: If you need to create the array and randomization in PHP, what's the best practice for it? Should the PHP be in its own document separate from the template file, or can the PHP be included inside the template itself?
doug
Douglas Arellanes Director of Innovation Sourcefabric, o.p.s.
What if I have several keywords? I would like to take the comma separated list of keywords from the current article and find articles with similar keywords.
Thanks so much for the input. I don't know why I never thought about randomizing an array.
Date: Wed, 5 May 2010 20:37:18 +0200
To: leemchildress@hotmail.com
Subject: [campsite-support] Re: Random and Keyword Article Lists
From: campsite-support@lists.sourcefabric.org
Sourcefabric Community Platform
Hi Lee,
I was poking around the Smarty documentation and came across this page, which might be a good place to start:
Mugur, here's my own newbie question: If you need to create the array and randomization in PHP, what's the best practice for it? Should the PHP be in its own document separate from the template file, or can the PHP be included inside the template itself?
> Hi Lee,
>
> I was poking around the Smarty documentation and came across this page,
> which might be a good place to start:
>
> http://www.smarty.net/manual/en/plugins.functions.php
>
> Mugur, here's my own newbie question: If you need to create the array and
> randomization in PHP, what's the best practice for it? Should the PHP be in
> its own document separate from the template file, or can the PHP be included
> inside the template itself?
>
>
> doug
>