Hey there,
i’m having a hard time here figuring out the exact steps. I can clearly feel that i lack knowledge at certain topics (mod_rewrite, regex), but i’m eager to learn.
What i want to achieve:
Having several document trees, seperated by contexts: one context for english, one context for german, one for french.
The documentation i found "translates" context into subdomains, like en.domain.com, fr.domain.com.
But for my site i wish to keep a folder-like structure: domain.com/en, domain.com/fr
I read
this piece of documentation and learned about the settings one can override for each context.
I read
this piece of documentation and learned about a needed call somewhere in the code (may it be through a plugin or a seperate index.php)
$modx->initialize('aContextNameOfYourChoice');
Now the things that kept me from succeeding:
way2go 1: switch-plugin
With a folder-like structure the http-host-parameter stays always the same, right? so i can’t switch the contexts depending on that. is there any parameter that could do the same for subfolders?
and what FURL-settings should there be to display contexts as subfolders? with friendly_url_prefix?
way2go: subfolders with duplicated and modified index.php
when creating a "physical" /fr/ subfolder, i have the problem of not knowing how exactly to change the rewrite rule. with this method i succeded to display the fr-contexts startpage, but the subpages got messed up by FURLs and wrong rewrite-settings.
I know i demanded from the community the last days, but if i get this setup up and running, i’m totally willing to give sth back in form of a step-by-step tutorial for the modx-beginners to follow after me.. so bare with me
thanks, niklas