Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » getTranslation(en_US)

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 468 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    getTranslation(en_US) Link to this post

    Hi,

    Using SS 2.4.9 with blog module.
    Site has multiple languages (6) , blog module exists on all languages but is written only in English. Using the batch action to duplicate and publish English pages to the other languages. This results in a larger database then needed, because the blogentry's are only in English, but exist 6 times per blogEntry..

    in the BlogHolder.ss i would like to target only the English blogentry's so i can shrink the database a bit. This has not been succesfull, any idea's?

    In the template using:
    <% control getTranslation(en_US) %> results in a page load, with the template, text: sorry no blogenrty's found...

    when i create a function that collects the blogentry's i get an error: nginx 502 bad gateway, also see: http://paste2.org/p/2606235

  • borriej
    Avatar
    Community Member
    267 Posts

    Re: getTranslation(en_US) Link to this post

    up!

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