Add per-language rules for multilingual node types

dvinegla - April 29, 2008 - 16:58
Project:Node breadcrumb
Version:5.x-2.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:edhel
Status:won't fix
Description

ie:
rid node_type mid language weight condition
3 news 23 es 0
4 news 25 fr 0

#1

dvinegla - April 30, 2008 - 14:33
Status:active» needs work

i18n patch after #253007: Clean up and code style

AttachmentSize
node_breadcrumb2_i18n.patch 26.26 KB

#2

edhel - April 30, 2008 - 15:39

1) does this feature depend on i18n module?
2) I suppose that second "ALTER TABLE" is unnecessary in node_breadcrumb_update_1().
3) really you can use "php condition" for this, it's quite simple php-code: $node->language == 'LANG'

#3

dvinegla - April 30, 2008 - 16:00

1) It works without any dependences, but if i18n is enabled, you can assign different breadcrumb to node translations.
2) Maybe. I'm not sure how hook_update works.
3) OK, with php condition works fine.

#4

dvinegla - April 30, 2008 - 16:20

However, the first row looks like more usable than the second one.

AttachmentSize
node_breadcrumb.png 17.26 KB

#5

Anselm Heaton - June 8, 2009 - 11:26

Hi,

I can see this issue is about the 5.x version - in case someone else looks for this in the 6.x version this can be easilly done with adding a PHP condition of the type "$node->language == 'fr'"

Thanks,
Anselm

#6

edhel - August 13, 2009 - 16:32
Assigned to:Anonymous» edhel
Status:needs work» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.