Dependence of obtained value in website_settings on site id #17707
-
I wanted to set the “phone” setting in “website_settings” to different values depending on the siteid.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The What you want to achieve might be done by passing a document of the give site by Lines 200 to 206 in 3ffaeac but do not know how |
Beta Was this translation helpful? Give feedback.
The
pimcore_website_config
twig funciton doesn't have a way to set a Site, thereforepimcore_website_config('phone',siteId)
is actually wrongSee also
pimcore/lib/Twig/Extension/WebsiteConfigExtension.php
Line 43 in 68f198d
What you want to achieve might be done by passing a document of the give site by
contentDocument
to the request stack, seepimcore/lib/Config.php
Lines 200 to 206 in 3ffaeac