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

Comments

dvinegla’s picture

Status: Active » Needs work
StatusFileSize
new26.26 KB
edhel’s picture

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'

dvinegla’s picture

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.

dvinegla’s picture

StatusFileSize
new17.26 KB

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

Alice Heaton’s picture

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

edhel’s picture

Assigned: Unassigned » edhel
Status: Needs work » Closed (won't fix)