CustomRequest 1.3.1-pl

CustomRequest 1.3.1-pl

Released Nov 13, 2018 by jako

Use friendly URLs everywhere in the frontend.

Download 102kb (85 downloads)
Downloads: 3,606
License: GPLv2
Requires Revolution 2.6.x or greater
Supports mysql

CustomRequest is an effective routing plugin for MODX Revolution to map pretty but not found URLs to a MODX resource and set the request parameters by separating the URI path at the URI separators or by a regular expression.

As standard option the first characters of the not found URI will be compared with the alias value of each config entry. If found, this config entry is used. The alias path is stripped from the not found URI and the remaining string is used to set the request parameters.

As a second option, the alias value of a config entry could contain a valid regular expression and the not found URI will be matched with that expression. If matched, this config entry is used. The first subpattern part of the expression is stripped from the found pattern and the remaining  string is used to identify the resource where the user is forwarded to later. At least the found pattern is removed from the not found URI and the remaining string is used to set the request parameters.

For full details and some example configurations see the documentation.

This project is hosted on GitHub: https://github.com/Jako/CustomRequest

Installation Instructions

MODX Package Management.

  • Log found configuration and the set request parameters
  • Cache valid configurations, even if one configuration is invalid
  • Change the log level of debug messages

      Version Released Author Downloads
      17 Versions 1 Contributors 3,612 Downloads
      1.3.0-pl Jul, 06 2018 jako 137
      1.2.6-pl Jun, 13 2016 jako 534
      1.2.5-pl May, 19 2016 jako 208
      1.2.4-pl Feb, 04 2016 jako 212
      1.2.3-pl Jan, 27 2016 jako 134
      1.2.2-pl Jan, 19 2016 jako 166
      1.2.1-pl Jan, 13 2016 jako 145
      1.2.0-pl Jan, 11 2016 jako 153
      1.1.4-pl Sep, 10 2015 jako 222
      1.1.3-pl Apr, 18 2015 jako 249
      1.1.2-pl Mar, 10 2015 jako 170
      1.1.1-pl Mar, 03 2015 jako 160
      1.0.3-pl Jan, 29 2015 jako 168
      1.0.2-pl May, 27 2014 jako 317
      1.0.1-pl Oct, 27 2013 jako 302
      1.0.0-pl Jun, 09 2013 jako 250