Random Sticky Documentation
Installation
Unzip the archive and copy the file pi.randomsticky.php into the plugins-directory inside your Expression Engine system-directory.
Usage:
Put the plugin-tag into one of your templates. Preferably into one where your sticky entry will be displayed.
Main Tag
{exp:randomsticky weblog="blog"}
This is a single tag. No closing tag required.
Parameters
There are four parameters.
weblog=""
Mandatory. This is the short name of the weblog where the sticky is to be randomly rotated.
duration=""
Optional. This is the duration in minutes after which new sticky flags will be set.
If left out it defaults to 1440 (24 hours).
status=""
Optional. Only entries with the specified status are candidates for a sticky.
If left out it defaults to ‘open’.
amount=""
Optional. The number of entries that are to be stickied.
If left out it defaults to 1.
Note:
This plugin requires the cache-folder in your EE system directory to be writeable by EE. A folder named ‘randomsticky’ will be created there which has to be writeable as well.