cycleResources 1.0.0-pl

cycleResources 1.0.0-pl

Released Jun 02, 2015 by muzzstick

A MODX extra for generating links to the next and previous resources in the same container.

Perfect for portfolio sites.

Download 26kb (325 downloads)
Downloads: 478
License: GPLv2
Requires Revolution 2.2.x or greater
Compatible up to Revolution 2.3.x
Supports mysql

A MODX snippet designed to cycle through resources in a container and provide a link to the next or previous resource.

This initial version will only link to resources at the same level.

Installation Instructions

USAGE

The newest and easiest way is to simply call [[nextResource]] for the next resource and [[prevResource]] from the previous resource.

Use [[nextResource? &tpl=`myCustomTplChunk`]] to specify your own chunk for formatting.

------------------------------------------------------------------------------

For backwards compatibility, the [[cycleResources]] snippet is also included.

To use the default template, and provide the "next" resource use: [[cycleResources]]

To use your own chunk for the template: [[cycleResources? &tpl=`myCustomTplChunk`]]

If you want the generated link to be for the "previous" resource instead of the next:[[cycleResources? &reverse=`1`]]

------------------------------------------------------------------------------

First proper release.

Added nextResource and prevResource snippets.