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
i18n patch after #253007: Clean up and code style
#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.
#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