About FirstChildRedirect
Use FirstChildRedirect to redirect users to the first document in a folder (based on menuindex sort order, however configurable) 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 by passing &default to the snippet with either a page ID, or one of the following: site_start,site_unavailable_page,error_page,unauthorized_page.
You can also use the &sortBy (any resource field) or &sortDir (asc or desc) parameters to specify what to sort on. Please note that it always takes the first resource.
Documented at http://rtfm.modx.com/display/ADDON/FirstChildRedirect, and source kept on Github at https://github.com/Mark-H/FirstChildRedirect
Information
Released
December 29, 2011
Supported Database
MySQL, SQL Server
License
GPLv2
Instructions
Install via Package Management.
New in 2.3.1-pl
| FirstChildRedirect 2.3.1-pl (2011-12-29)
=============================
#4 Add ability to specify the response (status) code for the redirect through &responseCode
| FirstChildRedirect 2.3.0-pl
=============================
#1 Fix hardcoded sortDir param
| FirstChildRedirect 2.3.0-rc
=============================
Refactored for MODX Revolution 2.1.