ASPX templates
Version 5.x > ASPX templates > CMSRepeater Multiple CultureCode? View modes: 
User avatar
Member
Member
gregb - 8/22/2011 9:44:20 AM
   
CMSRepeater Multiple CultureCode?
IS it possible to have multiple culture codes in a cms repeater?

For example, a site with 4 cultures:
en-us (default)
en-ca
fr-ca
en-gb.

In my cmsrepeater i would like to display only: en-us, en-ca, en-gb.

I've tried this and it works to display both en-us and en-ca:
<cms:CMSRepeater ID="repeaterContentList" runat="server"
SelectOnlyPublished="true"
ClassNames="custom.Asset"
CombineWithDefaultCulture="true"
CultureCode="en-ca"
OrderBy="PublicationDate DESC" />

However when I add en-gb, it falls over and only displays en-us:
<cms:CMSRepeater ID="repeaterContentList" runat="server"
SelectOnlyPublished="true"
ClassNames="custom.Asset"
CombineWithDefaultCulture="true"
CultureCode="en-ca; en-gb"
OrderBy="PublicationDate DESC" />

What am I doing wrong?


User avatar
Member
Member
kentico_michal - 8/24/2011 5:52:56 AM
   
RE:CMSRepeater Multiple CultureCode?
Hello,

The CultureCode property does not support multiple culture codes.
So, you will need to add one repeater for each culture on a single page.

Best regards,
Michal Legen