Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Language URLs?


Reply

5 Posts   727 Views

Avatar
jand

21 July 2010 at 1:34am Community Member, 30 Posts

Hi,
I like the hierarchical URLs in 2.4 but I'm not sure if you can automatically implement the language short in the URLs?
e.g. http://www.domain.com/en/nested/url/

And if you enter http://www.domain.com/de/nested/url/ you get the same page in german (if it has the right name).

Avatar
dompie

28 July 2010 at 9:16pm Community Member, 88 Posts

I'd like to change the default URL scheme to something like 'http://www.domain.com/en/nested/url/' too. I've looked into SimpleURL and other url methods, but could not find a default pattern.

How do i solve this in SS 2.4? Any hints?

Avatar
rob.s

1 August 2010 at 9:34pm Community Member, 78 Posts

would be really nice to know .....

Avatar
k0m0r

8 August 2010 at 9:24pm Community Member, 39 Posts

Why don't you set your HomePage URLs to 'en', 'de', etc. and move other pages as children of homepage?

Avatar
dompie

9 August 2010 at 7:35pm (Last edited: 9 August 2010 7:36pm), Community Member, 88 Posts

Because
1. this would make the translateable extension useless
2. therefore every user needs to track manually translations for 2 (my case 3, later 7) and more subtrees
3. it is the wrong place to solve that problem