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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

getTranslation(en_US)


Go to End


2 Posts   1890 Views

Avatar
borriej

Community Member, 267 Posts

18 December 2012 at 4:19am

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

Avatar
borriej

Community Member, 267 Posts

29 January 2013 at 3:58am

up!