FirstChildRedirect
Votes: 8
Tags: Navigation, redirection
Submitted: Nov 5, 2009
Released: Nov 5, 2009
Downloads: 153
License: GPLv2
FirstChildRedirect 2.2-beta2
Works with the following Version(s): Revolution-2.0.0-beta-5 | Revolution-2.0.0-rc-1
Redirect the page to the first child element.
- This version is for Revolution 2.0.0-beta5 and onward only.
Download
- firstchildredirect-2.2-beta2.transport.zip (153 downloads)
Description
Use FirstChildRedirect to redirect users to the first document in a folder (based on menuindex sort order) when they access a folder document within MODx.
If no children are found for the specified document, FirstChildRedirect will redirect users to the site start page, though this behavior can easily be modified in the snippet code: just look for $modx->config'site_start' and replace it with another config value ( e.g. $modx->config'error_page' ) or a specific document id.
Instructions
Install via Package Management.
Sub-Packages
Previous Releases
2.2-beta1
Tags: Navigation, redirection
Submitted: May 21, 2009
Released: May 21, 2009
Downloads: 364
License: GPLv3
FirstChildRedirect 2.2-beta1
Works with the following Version(s): Revolution-2.0.0-beta-1
Redirect the page to the first child element.
Download
- firstchildredirect-2.2-beta1.transport.zip (364 downloads)
Description
Use FirstChildRedirect to redirect users to the first document in a folder (based on menuindex sort order) when they access a folder document within MODx.
If no children are found for the specified document, FirstChildRedirect will redirect users to the site start page, though this behavior can easily be modified in the snippet code: just look for $modx->config'site_start' and replace it with another config value ( e.g. $modx->config'error_page' ) or a specific document id.
Instructions
Install via Package Managment.
1.1
Votes: 13
Tags: Navigation, redirection
Submitted: Jul 21, 2006
Released: Jul 21, 2006
Downloads: 2001
License: Public Domain
Package Website
FirstChildRedirect 1.1
Works with the following Version(s):
This snippet was created to have MODx folders emulate the behavior of traditional folders in a web site by redirecting to the first child page it contains.
Download
- repo-840.txt (2001 downloads)
Description
Use FirstChildRedirect to redirect users to the first document in a folder (based on menuindex sort order) when they access a folder document within MODx.
If no children are found for the specified document, FirstChildRedirect will redirect users to the site start page, though this behavior can easily be modified in the snippet code: just look for $modx->config'site_start' and replace it with another config value ( e.g. $modx->config'error_page' ) or a specific document id.
Instructions
Create a new snippet called FirstChildRedirect and copy and paste the contents of the snippet.FirstChildRedirect.tpl file into it. Save the snippet and you are ready to use it.
You can place the snippet in any content of a MODx document specified as a folder (i.e. has children) to redirect to the first child:
FirstChildRedirect
or for cached folders, use...
!FirstChildRedirect!
You can optionally have it redirect to the first child of another document by specifying the parameter docid...
FirstChildRedirect &docid=`12`
Updates
Makes the docid parameter optional and defaults to the current page.1.0
Votes: 14
Tags: Navigation, redirection
Submitted: Jul 20, 2006
Released: Jul 20, 2006
Downloads: 493
License: Public Domain
Package Website
FirstChildRedirect 1.0
Works with the following Version(s):
This version has been marked as deprecated. Please use a newer version.
This snippet was created to have MODx folders emulate the behavior of traditional folders in a web site by redirecting to the first child page it contains.
Download
- repo-836.txt (493 downloads)
Description
Use FirstChildRedirect to redirect users to the first document in a folder (based on menuindex sort order) when they access a folder document within MODx.
If no children are found for the specified document, FirstChildRedirect will redirect users to the site start page, though this behavior can easily be modified in the snippet code: just look for $modx->config'site_start' and replace it with another config value ( e.g. $modx->config'error_page' ) or a specific document id.
Instructions
Create a new snippet called FirstChildRedirect and copy and paste the contents of the snippet.FirstChildRedirect.tpl file into it. Save the snippet and you are ready to use it.
You can place the snippet in any content of a MODx document specified as a folder (i.e. has children) to redirect to the first child:
FirstChildRedirect
or for cached folders, use...
!FirstChildRedirect!
You can optionally have it redirect to the first child of another document by specifying the parameter docid...
FirstChildRedirect? &docid=`12`




Please login to comment.