dev-master
9999999-dev http://philecms.comCreates a new template variable, pages_shuffled, which contains a randomized array of pages.
MIT
The Requires
by James Doyle
cms content phile
Creates a new template variable, pages_shuffled, which contains a randomized array of pages.
Note: This repository is abandonded. Use https://github.com/PhileCMS/phileTwigFilters instead., (*1)
Creates a new template variable, pages_shuffled, which contains a randomized array of pages., (*2)
php composer.phar require phile/pageshuffle:*
plugins/phile/pageShuffle
After you have installed the plugin. You need to add the following line to your config.php
file:, (*3)
$config['plugins']['phile\\pageShuffle'] = array('active' => true);
This plugin exposes a new variable to templates called, pages_shuffled
. This array contains a shuffled (randomized) version of pages
., (*4)
<ul class="posts"> {% for page in pages_shuffled %} <li><a href="{{ page.url }}">{{ page.title }}</a></li> {% endfor %} </ul>
Creates a new template variable, pages_shuffled, which contains a randomized array of pages.
MIT
cms content phile