Ok, resume. This is what I have:
1. Working on a new server (the old site is up and running on the old host), domain name not moved yet, redirect to new server via hosts file.
2. Working with a subdir for Context2. The site is divided in two: www.domain.tld and www.domain.tld/context2.
3. Resources in context2 need a different (Wayfinder) menu, different site_name, etc.
4. I installed Xrouting.
The problem:
Context1 is working fine. Resources in Context2 do not show the correct menu, site_name, templates. Instead they use the default (?) template of Context1, site_name of Context1, etc.
Settings context1 (web):
base_url- /
http_host- domain.tld
site_url-
http://domain.tld/ (yes, without 'www.' and trailing slash)
Settings context2 (Context2):
base_url- /context2/
http_host- domain.tld/context2
site_url-
http://domain.tld/context2/
site_name- Context2
site_start- 6
Wayfinder settings context1 (web):
[[Wayfinder?
&startId=`0`
&level=`2`
&contexts=`web`
&scheme=`abs`
&outerTpl=`Wayfinder.outerTpl`
&innerTpl=`Wayfinder.innerTpl`
&parentRowTpl=`Wayfinder.parentRowTpl`
&innerRowTpl=`Wayfinder.innerRowTpl`
&rowTpl=`Wayfinder.rowTpl`
]]
Wayfinder settings context2 (Context2):
[[Wayfinder?
&startId=`6`
&level=`2`
&contexts=`Context2`
&scheme=`abs`
&outerTpl=`Wayfinder.outerTpl`
&innerTpl=`Wayfinder.innerTpl`
&parentRowTpl=`Wayfinder.parentRowTpl`
&innerRowTpl=`Wayfinder.innerRowTpl`
&rowTpl=`Wayfinder.rowTpl`
]]
System setting:
link_tag_scheme- abs
Friendly URL's enabled (both system settings and htaccess)
[ed. note: handjes last edited this post 11 years, 7 months ago.]