Thursday, April 15, 2010

Drupal Blocks for a Multilingual Site

We sometimes use “Drupal Blocks” to create a multilingual site. The logic is straight forward for every content type in question create a block element . For example for the content type news_english you will need to create a block element called news_english. Once you have created such a block element you will also need to create a logic inside the theme file for that specific block. For example if the block news_english is under block Top Left . You might have a file in your theme such as block-leftTop.tpl.php
And you can put such a code inside this file to only show a specific language of a given block

No comments:

Post a Comment