You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make current context available as placeholder in field options #166
This issue only concerns multi-context-mode. This is more of an enhancement than a bug. In some fields it's possible to make snippet calls so tags get processed and you can for example create your own set up input options by calling pdoResources to populate them. This is not context-aware.
Step to reproduce
Try to find a context placeholder and fail at it.
Observed behavior
Me not finding the context placeholder :)
Expected behavior
Me having a [[+clientconfig.context]] placeholder of some sort, so I can do this:
This would likely need to be added in core/components/clientconfig/controllers/home.class.php around line 44-48. Perhaps simply $this->modx->setPlaceholder('context', $context) where $context is a validated key (currently handled around line 57-68.
Would be a cool enhancement but don't have time to build (and more importantly) test that right now.
Activity
Mark-H commentedon Oct 24, 2019
This would likely need to be added in core/components/clientconfig/controllers/home.class.php around line 44-48. Perhaps simply
$this->modx->setPlaceholder('context', $context)where$contextis a validated key (currently handled around line 57-68.Would be a cool enhancement but don't have time to build (and more importantly) test that right now.