utilitees

- Addons for ExpressionEngine 1.7.x

Random Sticky Documentation

Download Download

Installation

Unzip the archive and copy the file pi.randomsticky.php into the plugins-directory inside your Expression Engine system-directory.

Back to top

Usage:

Put the plugin-tag into one of your templates. Preferably into one where your sticky entry will be displayed.

Back to top

Main Tag

{exp:randomsticky weblog="blog"

This is a single tag. No closing tag required.

Back to top

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.

Back to top

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.

Back to top

 

Questions / bug reports

For general comments, brickbats & bouquets please use the form over here.
Name:

Email:

URL:


Remember my personal information
Notify me of follow-up comments?