Home  Extras  MODx Add-Ons  Navigator

Product:

Navigator



Votes: 25
Tags: Navigation, Menu
Submitted: Jul 8, 2009
Released:
Downloads: 169
License: GPLv3


Navigator 1.0.3 | Author: pms

Works with the following Version(s): 0.9.6 | 0.9.6.1 | 0.9.6.2 | 0.9.6.3 | Evolution-1.0.0

This snippet is designed to aid navigation, by providing information about a related page. Currently, this snippet handles the following relationships:

next (next);
previous (prev); and
parent (up).

===================================================
Usage:
===================================================

To use this snippet you'll have to provide a template for the information you want to display about the related page. Within the template you can use:
* modx document variable placeholders [+id+], [+pagetitle+], [+description+], etc...
* template variable placeholders. eg. [+mytv+]
* Navigator placeholders: [+nav.rel+]

Currently, the only navigator placeholder available is [+nav.rel+], which returns the relationship with the document: 'next', 'prev', or 'up'. See the &rel input parameter.

===================================================
Example templates and snippet calls:
===================================================
For examples, please see the readme or navigator.snippet.php file.


Download


Description

This templatable snippet is designed to aid navigation, by providing information about a related page. Currently, this snippet handles the following relationships:

next (next);
previous (prev); and
parent (up).

Unlike PrevJumpNext, where next and prev correspond to siblings within the same folder, Navigator will transcend the levels of the menu system if you want too to find an adjacent document in the document tree.

This snippet is similar to PrevJumpNext, but there are some things that PrevJumpNext does that this wont do. 'Jump' is one of them. Ordering by something other than menuindex is also currently not supported, since Navigator is really designed for navigating menu systems.

This latest version adds php 4 style class backwards compatibility and fixes some bugs.

Instructions

1. Copy the navigator folder into assets/snippets/
2. In modx, go to Resources->Manage Resources->Snippets.
3. Create a new snippet and enter the following details:
Snippet Name:
Navigator
Description:
1.0.3 Enables navigation to related pages (prev, next, up)
4. Copy the contents of navigator.snippet.php into the Snippet Code box and save the snippet.




Sub-Packages



Previous Releases


0.1

Forums Support Thread Votes: 27
Tags: Navigation, Menu
Submitted: Dec 18, 2008
Released: Jul 8, 2009
Downloads: 24
License: GPL - GNU Public
Package Website


Navigator 0.1 | Author: pms

Works with the following Version(s): 0.9.6 | Revolution-2.0.0

This version has been marked as deprecated. Please use a newer version.

This snippet is designed to aid navigation, by providing information about a related page.
Currently, the only relationships this snippet handles are: next, previous (prev) and parent (up)


Download


Description

This templatable snippet is designed to aid navigation, by providing information about a related page. Currently, this snippet handles the following relationships:

next (next);
previous (prev); and
parent (up).

Unlike PrevJumpNext, where next and prev correspond to siblings within the same folder, Navigator will transcend the levels of the menu system if you want too to find an adjacent document in the document tree.

This snippet is similar to PrevJumpNext, but there are some things that PrevJumpNext does that this wont do. 'Jump' is one of them. Ordering by something other than menuindex is also currently not supported, since Navigator is really designed for navigating menu systems.

This latest version adds php 4 style class backwards compatibility and fixes some bugs.

Instructions

1. Copy the navigator folder into assets/snippets/
2. In modx, go to Resources->Manage Resources->Snippets.
3. Create a new snippet and enter the following details:
Snippet Name: Navigator
Description: 0.1 Enables navigation to related pages (prev, next, up)
4. Copy the contents of navigator.snippet.php into the Snippet Code box and save the snippet.

===================================================
Usage:
===================================================

To use this snippet you'll have to provide a template for the information you want
to display about the related page.
Within the template you can use:
* modx document variable placeholders +id+, +pagetitle+, +description+, etc...
* template variable placeholders. eg. +mytv+
* Navigator placeholders: +nav.rel+

Currently, the only navigator placeholder available is +nav.rel+, which returns the relationship with
the document: 'next', 'prev', or 'up'. See the &rel input parameter.

===================================================
Example templates and snippet calls:
===================================================

LinkChunk:
navigator? &rel=`prev` &template=`LinkChunk`
navigator? &rel=`up` &template=`LinkChunk `
navigator? &rel=`next` &template=`LinkChunk `


Provide links to related pages using a hyperlink:
PrevChunk:

navigator? &rel=`prev` &template=`PrevChunk`




Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Advertise | Team Blog | FAQ | Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service