Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Master Page Template Problem View modes: 
User avatar
Member
Member
vojdoo-gmail - 6/21/2013 4:08:57 AM
   
Master Page Template Problem
Excuse me, if I am posting this on the wrong place or if there are similar posts regarding my problem.

So the problem is:

I am building a website that should support 3 different languages.
All three language versions of the site use the same Master Page Template.

The problem is that i want the 3 different languages to have different meta tags in the head. So i have created(Save as new template...) different templates for all languages, i.e
MPageTemplate01, MPageTemplate02, MPageTemplate03. And now whenever I add something in the head(Master page tab of the root document ), it appears in all three Template.
I also tried to add meta tag in the head through properties tab>Edit template properties>header>Add HEAD element content, but then nothing happen.

Is this the normal behavior of the CMS or I am doing something wrong?

Regards.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/22/2013 12:19:49 AM
   
RE:Master Page Template Problem
Hello,

Could you please try using the Localization macro in your master page? With this macro you should be able to display the text based on the viewing language. I believe that you dont need to have 3 different layouts.

How to use localization macros please see http://devnet.kentico.com/docs/5_5r2/devguide/index.html?appendix_a___macro_expressions.htm

Let me know if that works.

Kind regards,
Richard Sustek

User avatar
Member
Member
vojdoo-gmail - 6/25/2013 2:48:10 AM
   
RE:Master Page Template Problem
OK this solved my issue.
Thanks!

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/25/2013 2:54:43 AM
   
RE:Master Page Template Problem
Hi,

Thank you for letting me and potentional other customers know:)

Kind regards,
Richard Sustek