https://github.com/modxcms/context-gateway
https://github.com/modxcms/context-gateway
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/modxcms/context-gateway
- Owner: modxcms
- Created: 2015-12-19T01:37:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T18:36:41.000Z (over 4 years ago)
- Last Synced: 2025-04-28T12:22:57.362Z (8 months ago)
- Language: PHP
- Size: 142 KB
- Stars: 1
- Watchers: 7
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ContextGateway
A MODX Gateway class that supports inherited Context Settings and 'aliases'. Utilizes advanced Context caching scheme by MODX Chief Architect [Jason "opengeek" Coward](https://github.com/opengeek), and routing class by [John "TheBoxer" Peca](https://github.com/TheBoxer)
## For Subfolders, NOT Domains
ContextGateway is for routing via subfolder, rather than domain. The unique feature of ContextGateway is nested "aliases" and Context Setting inheritance. If you need to use different domains for your Contexts, try [XRouting](http://modx.com/extras/package/xrouting).
## Special settings
The gateway class requires the use of a special Context Setting `ctx_alias` that acts as the uri bit for the Context on which it is set. The use of `ctx_parent` allows setting a parent Context, from which all settings will be inherited if they are not set on the current Context. You can thus "nest" Contexts and have them routed like this: "http://example.com/parent-context/child-context/resource-in-child-context/"
## Performance
This Plugin has been used for years by the MODX Team on numerous Production sites, some with millions of monthly visitors.