modmore / ClientConfig

ClientConfig is a MODX Revolution Extra to allow clients to maintain settings in a user friendly way.
https://docs.modmore.com/en/Open_Source/ClientConfig/index.html
MIT License
28 stars 27 forks source link

Context issue with getOption #164

Closed studiorobl closed 5 years ago

studiorobl commented 5 years ago

When using $modx->getOption('key') the setting is not available in one of my contexts, but is in the other context.

When I place it as a placeholder (i.e. [[++key]]) it works in either context.

I have updated to 2.1.0

Mark-H commented 5 years ago

This is most likely a result of what context routing solution you use, and where you're calling $modx->getOption exactly.

See #136 (ContextRouter), #154 (XRouting) and #140 (Babel) for similar issues and discussions.