Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Random pages list
#3
RobA Wrote:You should be able to use the Page Caching plugin : http://get-simple.info/extend/plugin/page-caching/65/

It provides a global: $digi_pagesArray you can use in templates.

This array is in the format ["page"]["field"]

Not tested, I'm thinking you could use something like:
Code:
$randomkeys = array_rand($digi_pagesArray,10);
foreach($randomkeys as $randomkey) {
  echo $digi_pagesArray[$randomkey]["field_1"];
  echo $digi_pagesArray[$randomkey]["field_x"];
}

to generate your random page pieces.

-Rob A>

If you cannot figure that out, tell me some more info about how you want to use the list and ill write a quick plugin for you.
Reply


Messages In This Thread
Need Random pages list - by GetSimple.RU - 2011-07-07, 06:27:52
Need Random pages list - by RobA - 2011-07-08, 01:44:32
Need Random pages list - by mikeh - 2011-07-28, 00:40:47



Users browsing this thread: 1 Guest(s)