Download & Extend

Add per-language rules for multilingual node types

Project:Node breadcrumb
Version:5.x-2.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:edhel
Status:closed (won't fix)

Issue Summary

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

Comments

#1

Status:active» needs work

i18n patch after #253007: Clean up and code style

AttachmentSize
node_breadcrumb2_i18n.patch 26.26 KB

#2

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

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

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

AttachmentSize
node_breadcrumb.png 17.26 KB

#5

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

Assigned to:Anonymous» edhel
Status:needs work» closed (won't fix)
nobody click here