MODX EXTRA

FirstChildRedirect

Redirects a page to its first published child resource.

Creator: Mark Hamstra (markh)

Download (19 KB)

About FirstChildRedirect

Now supports MODX 2 and 3. Use FirstChildRedirect for section pages that you want to redirect to the first child.

This snippet redirects a page to its first child element based on menuindex, but is configurable. [Find the documentation here.](https://docs.modx.com/current/en/extras/firstchildredirect) for more specific information on how to customize this snippet.

[Please report bugs and feature requests on Github.](https://github.com/Mark-H/FirstChildRedirect)

Information

Released
February 7, 2020
Supported Versions
2.5 – Current
Downloads
23,806
License
GPLv2

New in FirstChildRedirect 2.4.0

  • Simplify internal logic for response code shortcuts
  • Code style reformat, now requiring at least PHP 5.4 (but really, use 7.1+)
  • Confirmed compatibility with MODX3 alpha2+
More

Previous Versions

2.3.1-pl
December 29, 2011
2.0 – Current
More

More from Mark Hamstra

VX

VersionX

Keeps track of your content and elements.

SD

SiteDashClient

Powerful MODX monitoring and remote management.

CC

ClientConfig

Manage client and theme settings from a comfortable interface.

CS

CSRF Helper

Secures your FormIt and Login forms with CSRF tokens.