Problem with translated breadcrumb for forum
I'm using a multilingual forum, and found two problems with i18n taxonomy module related to the breadcrumb
1) When using forum inside a container, when displaying the forum, the breadcrumb doesn't include the container.
example :
With the following forum structure
container : "General"
------- forum "News and announcements"
------------ topic "New release"
------- forum "General discussion"
container : "Support"
------- forum "Module"
......................................
when displaying forum "News and announcements" , breadcrumb is displaying "Home >> Forums", instead of "Home >> Forums >> General"
I fixed this issue with the first patch : inside function i18ntaxonomy_preprocess_forums(), parents are parsed to be included on the breadcrumb.
2) When displaying a forum topic, translated breadcrumb is sometimes displaying wrong information. I can not provide a way to reproduce this problem, It just occurs when function i18ntaxonomy_nodeapi() is called, this seems to be due to a bug inside this function. I fixed this issue with the second patch.
Both patchs are for i18n-6.x-1.2 and i18n-6.x-1.x-dev
Comment | File | Size | Author |
---|---|---|---|
#5 | i18ntaxonomy.module.patch | 1.06 KB | moritzz |
#3 | i18ntaxonomy.module-1.patch | 1.63 KB | pdesarnaud |
#2 | i18ntaxonomy.module-2.patch | 633 bytes | pdesarnaud |
#1 | i18ntaxonomy.module-1.patch | 864 bytes | pdesarnaud |
Comments
Comment #1
pdesarnaud CreditAttribution: pdesarnaud commentedFirst patch
Comment #2
pdesarnaud CreditAttribution: pdesarnaud commented2nd patch
Comment #3
pdesarnaud CreditAttribution: pdesarnaud commentedNew patch to fix new issues.
1) Page title doesn't reflect the displayed forum ( when displaying a forum, the page title is always the same : it is retrieved from the vocabulary table using variable 'forum_nav_vocabulary' as id )
2) When displaying a top level forum or container, the breadcrumb is always including the name of the displayed forum/container.
this patch replace the previous i18ntaxonomy.module-1.patch
Comment #4
jpmckinney CreditAttribution: jpmckinney commentedI came across this typo today. At the very least, that change should be committed.
Comment #5
moritzz CreditAttribution: moritzz commentedVersion for the latest dev release.
Comment #6
joseph.olstad