Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: Multilanguage Home Page

Submitted by on September 3, 2010 – 11:50 amNo Comment

This article would tell you how show article on the home page of your Drupal-based site on different languages. One of the possible ways is to output a node on the main page that will be changed to the respective language when the language was changed for a whole site.

First make sure that multilanguage is set for your site and an ability to translate nodes is enabled.

Then you should:

  1. Open the required node for editing and set a path: “home”.
  2. Make the same for all translations using the same value of a path (“home”)
  3. Open “Site information” page admin/settings/site-information and specify a path to main page (“home”)
  4. Save settings and check languages switching on the main page.

Possible problems:

If you receive this message:

user warning: Duplicate entry ‘home-en’ for key 2 query: UPDATE url_alias SET src = ‘node/126′, dst = ‘home’, language = ‘en’ WHERE dst = ‘home’ in /home/ … /modules/path/path.module on line 108.

Then you already used such path synonym but for a page that is neutral to language.

You can try to change path synonyms here: admin/build/path. Find your path synonym and delete it, if language column shows “All”.

How to show node on the home page in one language

If you wish to shoe a node in home page of multilanguage site always in one language, you should open admin/settings/site-information and specify system path to the node instead of path synonym there:

node/10

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.