-
- 1,145 Posts
In your template, try this <base href="[[!++site_url]]" />. I think you are using the same template? Anyway, call that site_url uncached (!), so that the switch is made smoothly, from one context to another...
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 12 Posts
its already with !
i've even switch off whole cache'ing system to test if it change anything and ... no.
is there any way to change site_url manualy?
i was trying doing it in core/config.core.php but $site_url in config.core.php was diferent that $modx->config['site_url']
maybe teher is a way to change $modx->config['site_url'] on page load or something?
-
- 1,145 Posts
If I could fully understand the scenario:
Are you using multiple templates?
Better not to touch the core. You can create your own placeholder if you need something custom.
System Settings / Create New Setting
You don't even have to use the [[++site_url]] at all
Call yours
[[++mainsite_url]] (witha value of main-url)
[[++kubasite_url]] (with a value of sub-domain-url)
[[++moresite_url]] (with a value of sub-domain-url)
Your wayfinder links work just fine from here. It respects the sub-domains before and after refreshing. Perhaps the main logo and other fixed things need to point to destino.pl? Right now the main logo is pointing to the current sub-domain. Should be easy to fix.
[ed. note: donshakespeare last edited this post 11 years, 2 months ago.]
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 1,145 Posts
I am glad you found the solution!
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 12 Posts
than you!
will try with placeholders
logo ... i knw it's strange but i have to tolk to client. i can't remember now but it may be that idea is to have separated logos for each subdomain.