Hi,
is is possible to trick EE into thinking that it has an extra segment variable with PHP ??
I am thinking about a way to make the Structure plugin easier to use in multilingual sites.
Lets say my site tree has:
- mysite.com/articles ( no language segment for default language )
- mysite.com/se/articles
- mysite.com/de/articles
And then lets say I am using the same template in all the languages for the article page.
My template will have to have conditionals all over the place because if we are on the default language then segment_1=articles, otherwise it is segment_2
What I want to try out is to trick EE - and behind the scenes add a segment_1 variable that is not in the url in the default language. Then all my templates will use segment_2 regardless of language.
You may ask why I want to do this?? Why not use something like the methods suggested in the Wiki. Well, I have used the Wiki methods with great success so I know them - but I just want to try this out.
Best,
Sammi