Selected Site Twig Variable within the Control Panel #11158
-
As of Craft 4, the selected site will be remembered across CP pages via a site query string param. You can fetch the site that param is referencing via craft\helpers\Cp::requestedSite().
It would be great to make this selected site available as a twig variable within the control panel so for multi-site setups it could be directly referenced or used in queries relating to the selected site as opposed to the current site from where you were accessing the control panel, e.g.
Another example could be getting the selected site name and appending that within the control panel UI, e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This seems identical to your previous request (#11082). Am I missing something? |
Beta Was this translation helpful? Give feedback.
This seems identical to your previous request (#11082). Am I missing something?