Jump to:

10851 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Same URLSegment for a similar page in another language?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 572 Views
  • c.scherer
    Avatar
    Community Member
    1 Post

    Same URLSegment for a similar page in another language? Link to this post

    hello SilverStripe-community,

    i'm actually working to get silverstripe running in different languages. the structure should look like this:
    eg. -> /enu/shop/details/10 (english version)
    and -> /deu/shop/details/10 (german version)

    the first URLSegment ist for the language and the region.
    i already found a solution getting these language-folders working. but now the problem is - silverstripe prevents duplicate URLSegments in the SiteTree-table.

    now my question: where i can find the point where SS appends the "-de-DE" / "-2" at the URLSegment?

    i'm using the actual silverstripe 2.4.3.

    thanking you in anticipation!

    kind regards,
    christian

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: Same URLSegment for a similar page in another language? Link to this post

    Hi

    Did you find a solution for that? I am currently facing the same problem in 2.4.7

  • jand
    Avatar
    Community Member
    30 Posts

    Re: Same URLSegment for a similar page in another language? Link to this post

    Hi, we had the same issue. As a workaround we just used one page in the pagetree root and put all other pages as childs. This "root page" has a custom pagetype "language". It has no content but the /en/ URL segment. Not the most elegant way but it works.

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: Same URLSegment for a similar page in another language? Link to this post

    Ok, so you put in the "en" from a custom field int your language pagetype, right? But that doesn't solves the problem with same URLSegments? Am I wrong?

    572 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.