Closed (fixed)
Project:
Taxonomy display
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jul 2011 at 13:57 UTC
Updated:
24 Oct 2011 at 06:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
codycraven commentedpauleb,
I'm glad you enjoy the module. I took a look at i18n's implementation for i18n_taxonomy and they have this code:
I then looked at i18n_taxonomy_term_page() and it looks like the only reason they are hijacking the term page is to provide a custom breadcrumb generation.
Based on this, if the i18n module maintainers are open to it, I can add support for breadcrumb hooking within taxonomy_display which would allow i18n to create a taxonomy_display plugin for providing the custom breadcrumb. They would need to add a check to i18n_taxonomy_menu_alter() to not hook taxonomy/term/%taxonomy_term if the taxonomy_display module is enabled along with creating the taxonomy_display plugin.
As soon as I get some time I will add support for the breadcrumb plugin and I can also roll a patch against i18n to accomplish the tasks outlined above, it would require them to implement the patch in to the module though.
So at this time these modules are currently unable to work together, however there is hope to make it work, it will just require some work and collaboration.
[EDIT] The i18n_taxonomy_term_page() also calls a function to perform altering of the term object within taxonomy/term/%taxonomy_term - I'll expose the object to a drupal_alter so that implementing modules can manipulate it without needing to overwrite taxonomy/term/%taxonomy_term. #1237136: Expose term object on term page to altering.
Comment #2
pauleb commentedThat's what I call response time! Whow!
Thanks for looking into, and working on it!
Comment #3
codycraven commentedWork for expanding breadcrumb support, the last requirement for i18n's taxonomy sub module compatibility (an implementing patch will still need to be written/applied to i18n), is being performed in #1247802: Add breadcrumb plugin for taxonomy display..
Comment #4
mariusz.slonina commentedPlease test #1280194: Taxonomy display integration. I created corresponding breadcrumb plugin and patches for i18n_taxonomy.
Comment #5
codycraven commentedThank you for the initiative mariusz! I'll take a look when I get a chance, may be a day or two due to work load.
Comment #6
zambrey commentedSubscribing.
Comment #7
giorgoskSeems that the linked issue and patch to i18n is stuck
since jose reyero wants patch to be applied to this module
what is the take on the module's maintainers
@mariusz.slonina
http://drupal.org/project/tvi is a module very similar to this one
TVI is not d7 ready but in d6 was working along side i18n
perhaps digging in this code one can find a way to overcome the i18n problem
Comment #8
mariusz.slonina commentedAs far as I see in the TVi code, they just increase the weight to be larger than views, it has no internationalization code. I decided to use taxonomy_display, since it is far more stable than tvi, and this is critical right now for my current project, and I think this approach is much more D7-like.
If the i18n_taxonomy integration would go in taxonomy_display, we need to increase the module weight only -- the plugin for breadcrumb and proper term hook are ready, I think, I'm using it successfully.
On the other hand, taxonomy_display reimplements core taxonomy far better and more flexible than i18n_taxonomy itself. Such functionality should go into core, at least some useful hooks provided here, but that's separate issue.
Comment #9
codycraven commentedJust to note I'm attempting to work with the internationalization module maintainer to see the best way for us to create a long term compatibility between the module. If the patch works for the time being that is fantastic, I just want to ensure we do this in a collaboratively supported way before placing any specific code in a module release.
Comment #10
codycraven commentedAdded a hook to alter core breadcrumb handler parents to make i18n manipulation more seamless.
Comment #11
codycraven commentedComment #12
codycraven commentedSomeone who knows about the i18n taxonomy module needs to test that taxonomy is now functional and works seamlessly with taxonomy display.
This will require using the latest dev version of 18n and either a git checkout of taxonomy display or using the dev package to be rebuilt on or after tomorrow, Friday, September 30th.
I have committed a patch in accordance with Jose's comment in the corresponding i18n issue -- attached here for review.
Also as a note, once this is marked RTBC I will release version 1.0.
Comment #13
jose reyero commentedThe i18n part is already included in the latest release (7.x-1.1) so you can test with that version.
Comment #14
codycraven commentedComment #15
codycraven commentedMarking as fixed as this will be included in a patch today since i18n released with their compatibility yesterday. If any issues are found please re-open or post a new issue.