Hi Modx people,
After reading
http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts
http://rtfm.modx.com/display/revolution20/Using+One+Gateway+Plugin+to+Manage+Multiple+Domains
I decided to try to make a subdomain (ua.modx.local) in my Modx site.
My main domain is modx.local.
I created a new context 'ua' and added all reaquired settings (attached image #1)
I didn't want to make seperate folder for my subdomain, su I created plugin (attached image #2) as described in
http://rtfm.modx.com/display/revolution20/Using+One+Gateway+Plugin+to+Manage+Multiple+Domains
And now I've got the following problem:
If I click 'View Resource' on my resource in 'ua' context, it opens me
http://modx.local/ page (not
http://ua.modx.local/, as I expected).
All my resources in both contexts have the same template. I added [[~1]]
[[~5]]
[[~4]]
[[~7]] (4,7 - ids of resources in 'ua' context; 1,5 - of 'web' context) to this template code to see what it would render. All resources in 'web' context parse these links this way:
http://modx.local/
vn.html
http://modx.local/
http://modx.local/up2.html
(Bad. I want it to add uas here)
All resources in 'ua' context parse these links this way:
http://ua.modx.local/
http://ua.modx.local/vn.html
(i don't want it to add uas here)
http://ua.modx.local/
up2.html
But when I type in browser ua.modx.local I get what I need - recourse with 4 id.
Will be really pleased for any help.