CustomRequest Icon

CustomRequest

By Thomas Jakobi (jako)

CustomRequest first screenshot

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

Thomas Jakobi


New in CustomRequest 1.3.2

  • Edit CustomRequest system settings in the custom manager page
  • Use $REQUEST variable instead of $SERVER variable to avoid subfolder installation issues
  • Retrieve $requestUri only during OnPageNotFound

      More

      Information

      Released
      March 20, 2019
      Supported Versions
      2.6 – Current
      Downloads
      3,782
      License
      GPLv2

      More from Thomas Jakobi

      P
      PDFResource

      Convert MODX resources to PDF files using mPDF

      View
      Crosslinks

      Add Crosslinks to your site

      View
      A
      AjaxUpload

      Upload files with AJAX and handle them with FormIt

      View
      SuperBoxSelect

      Advanced 'Listbox' / 'Resource List' template…

      View