Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Trying to get two different news archives for two different languages

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1134 Views
  • cabrilo
    Avatar
    Community Member
    3 Posts

    Trying to get two different news archives for two different languages Link to this post

    Hello all!

    I'm new to SilverStrip, so please if you tell me to RTFM please provide a link as well Anyway, here is my problem:

    I have a website in two languages. I want each language to have it's own news archive (much like the one created in tutorial). So, I would present totally different content depending on the language, not just translate news...

    How would I go about this?

    My original idea was to create two holders, one for Default Language, other for Secondary Language. Then, I would, depending on the language, get Childrenof (HolderForLanguage), and display them. However, in order for Secondary Language pages to display at all, I would have to write a dummy page in Default Language, and then translate into Secondary Language, which seems like a hassle.

    Any ideas?

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Trying to get two different news archives for two different languages Link to this post

    If I understand how i18n works in SilverStripe, you should be able to use the same code, just create articles in the language, and the method that gets the articles should only return articles written in the current language.

  • cabrilo
    Avatar
    Community Member
    3 Posts

    Re: Trying to get two different news archives for two different languages Link to this post

    Simon,

    Thanks, but how can I write an article in any language? i.e. without doing a translation?

    1134 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.