开发者

Views 2: Filter Nodes by selected language

I have a Drupal 6 multilanguage installation and I want to filter the nodes displayed by a view based on the lan开发者_如何转开发guage the user selected.

When adding "Node translation: Language" but I still get all entries. Any ideas what I missed?


In Views you can select at the Filters-> "Node translation: Current user's language"

This gives the nodes that are published in the language of the current user.


If you are using the i18n module, there is a filter called "i18n: Content Negotation" which handles the appropriate language for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜