Reserved Parameters
Last updated Apr 29th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn moreYou can typically use any parameters you'd like when creating custom manager pages or other integrations, but there are a couple of exceptions.
Reserved parameters in the manager¶
The following parameters are used by the manager for various purposes.
-
a
– used to define an action or controller -
namespace
- indicates what namespace the action belongs to; when not specified defaults tocore
-
context_key
– specifies one of your contexts (e.g. "web" or "mgr") -
wctx
- specifies the "working context" which is the context the current "thing" belongs to, rather than the context "mgr". -
class_key
– specifies a class name, e.g. when creating a Weblink or static resource -
id
- specifies the ID a certain action or controller defaults to.
Reserved parameters in the front-end¶
-
q
- used when friendly URLs are enabled for routing a request to the right resource. Can be changed with therequest_param_alias
system setting, but recommended to leave unchanged. -
id
- used when friendly URLs are disabled for fetching the current resource. Can be changed with therequest_param_id
system setting, but recommended to leave unchanged.
Reserved $_SESSION
variables¶
-
cultureKey
- all parameters prefixed with
modx.
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn more