• MODX.com

    652 downloads

cycleResources

cycleResources is an extra by digitalpenguin, first released on 2015-05-28.

Package Description

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.

Usage/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`]]

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

Details

Developer(s)
digitalpenguin
Released
2015-06-02
First seen
2015-05-28
License
GPLv2
Supported databases
MySQL
Minimum MODX Requirement
2.2

cycleResources Releases

Vendor Signature Released on
MODX.com 1.0.0-pl 2015-06-02 (8 years ago)