Sure - but do keep page load time in mind. If it looks like it could be an issue there is the possibility of caching for example to give a different random selection every hour or day.
I know you've just upgraded to the latest distribution so in the first instance to create the selection if you edit index.php and look for the following code at line 20:
$sql = "SELECT * FROM `".$config_databaseTablePrefix."featured` ORDER BY sequence";
...and REPLACE with:
$sql = "SELECT name,1 AS sequence FROM `".$config_databaseTablePrefix."products` ORDER BY RAND() LIMIT 100";
Then in html/featured.php you can decide which size of block grid you want for each of small / medium / large displays. The default uses a block grid of 2 for small and medium, and 4 for large by way of this code at line 9:
Hello Roland,
Sure - but do keep page load time in mind. If it looks like it could be an issue there is the possibility of caching for example to give a different random selection every hour or day.
I know you've just upgraded to the latest distribution so in the first instance to create the selection if you edit index.php and look for the following code at line 20:
$sql = "SELECT * FROM `".$config_databaseTablePrefix."featured` ORDER BY sequence";
...and REPLACE with:
$sql = "SELECT name,1 AS sequence FROM `".$config_databaseTablePrefix."products` ORDER BY RAND() LIMIT 100";
Then in html/featured.php you can decide which size of block grid you want for each of small / medium / large displays. The default uses a block grid of 2 for small and medium, and 4 for large by way of this code at line 9:
<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-4">
...so for 5 across in large and medium, leaving the default of 2 across for small, your would REPLACE the above with:
<ul class="small-block-grid-2 medium-block-grid-5 large-block-grid-5">
Hope this helps!
Cheers,
David.
--
PriceTapestry.com