2017 © Pedro Peláez
 

phile-plugin page-shuffle

Creates a new template variable, pages_shuffled, which contains a randomized array of pages.

image

phile/page-shuffle

Creates a new template variable, pages_shuffled, which contains a randomized array of pages.

  • Thursday, March 29, 2018
  • by NeoBlack
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Note: This repository is abandonded. Use https://github.com/PhileCMS/phileTwigFilters instead., (*1)

philePageShuffle

Creates a new template variable, pages_shuffled, which contains a randomized array of pages., (*2)

1.1 Installation (composer)

php composer.phar require phile/pageshuffle:*

1.2 Installation (Download)

  • Install the latest version of Phile
  • Clone this repo into plugins/phile/pageShuffle

2. Activation

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);

Usage

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>

The Versions

29/03 2018

dev-master

9999999-dev http://philecms.com

Creates a new template variable, pages_shuffled, which contains a randomized array of pages.

  Sources   Download

MIT

The Requires

 

cms content phile