General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > Segmenting Products and Content By Country and Language View modes: 
User avatar
Member
Member
jmccombs-petsafe - 10/18/2008 8:52:20 AM
   
Segmenting Products and Content By Country and Language
I'm looking into Kentico as a solution for a problem I've been tasked with. I need to be able to show different content based on a physical country and language that is determined by a users ip, or a cookie that they set at a country selector page. The same is true for showing products. My company sells specific sku's in certain countries, but not in others. Any ideas on how I should go about this?

User avatar
Member
Member
kentico_petrp - 10/20/2008 3:31:48 PM
   
RE:Segmenting Products and Content By Country and Language
This is not supported out-of-the-box, but it shouldn't be too difficult:

1) You need to create a new multiple choice field in the given document types that will allow you to choose target countries.

2) In the web parts used to show the content, you need to specify the Where Condition e.g. like this:
CountryField LIKE '%{@CountryCookie@}%'

where CountryField is the name of the multiple choice field you created in step (1) and (2) is the name of the cookie that contains the country code (provided that you use the same country codes in the CountryField values and country cookie).

Hope this helps.

Regards,
Petr