Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What's the plan for porting this module?
Comment | File | Size | Author |
---|---|---|---|
#22 | taxonomy_menu_trails_vertical_tab.patch | 729 bytes | Anonymous (not verified) |
#22 | taxonomy_menu_trails.js_.txt | 1.02 KB | Anonymous (not verified) |
#17 | taxonomy_menu_trails_info.patch | 1.1 KB | Anonymous (not verified) |
#17 | taxonomy_menu_trails_install.patch | 606 bytes | Anonymous (not verified) |
#17 | taxonomy_menu_trails_module.patch | 900 bytes | Anonymous (not verified) |
Comments
Comment #1
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedI'll find some free time within next month to port it to D7. If you want to start working on this (and maintain D7 version), please let me know.
Comment #2
Bahlool CreditAttribution: Bahlool commentedSubscribing
Comment #3
andypostsubscribe
Comment #4
frankie CreditAttribution: frankie commentedsubscribe
Comment #5
MrHaroldA CreditAttribution: MrHaroldA commentedAny word on the progress of the port? Or maybe a preview?
Comment #6
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedSorry, I was too busy. On the next weekend (or maybe earlier) I'll have free time and I'll spend it on porting to D7.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAttached you will find a non working Drupal 7 port of this module. It was done using the coder module and does not show and errors. The only problem I have right now is, I have no idea why it does not work. Maybe it's a problem with the taxonomy menu integration.
So far I have updated the functions that have changed in the API. I have updated the function comments as well some code formatting. What's missing is an update of the SQL queries using the new DBTNG layer.
Comment #8
WilliamV CreditAttribution: WilliamV commentedSubscribe to this topic.
Comment #9
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@mikewink: porting to D7 is not so simple because "vocabulary <-> node type" relationships are fields now. For example, you can connect vocabulary with node type multiple times with different settings.
So, here are my plans for D7 port of Taxonomy Menu Trails (TMT):
I've already started working on it.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedHi Dmitriy.trt,
yeah I know, but I thought I would give you a basic skeleton for your work. :) Is the D7 code already on d.o? If so where do you need help?
Comment #11
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@mikewink: Thanks for your code, I've used small part of it. Your name will appear in changelog and next commit.
Now I can't understand what fields' language is used for. For example, terms are grouped by language inside node fields. Right now I'm just using them all from all languages, but I'm not sure is it correct or not. If you'll find some documentation about it, this would be great.
I'll publish first 7.x-1.x-dev as soon as module will be ready for testing (probably today or tomorrow).
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedOkay I will check this. The best docu I have found on this topic is this one by Gábor:
http://hojtsy.hu/blog/2011-jan-31/drupal-7039s-new-multilingual-systems-...
If that's not enough I will search for more or contact Gábor. I can also help with the translation for Germany. I will test the module as soon as it is released.
Comment #13
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@mikewink: Thanks for the article, looks like it will answer my questions. I'll read it tomorrow.
It can be funny, but sometimes I need help with "translation" to English. So if you'll find some labels or descriptions weird, please let me know. Translation for Germany will be great, of course. All translations is done through http://localize.drupal.org/ now, so you can contribute translation to German there.
I've created first 7.x-1.x-dev release. It will be packaged and available to download soon (dev releases are packaging twice a day). Or you can directly clone 7.x-1.x branch (instructions can be found from TMT project page, tab "Git instructions"). You can find module settings on node type edit form (additional vertical tab) and one checkbox on term reference field edit form (which is just for comfort, it duplicates one function of main settings). Module is still full of TODOs and for testing only, work is in progress.
There are two known bugs in core which prevents TMT to work properly:
Also, I've found more one bug recently, didn't have time to investigate it yet. Possible reproduce scenario is: first attach term to node, then change and save content type of this node. As a result, menu item linked to attached term will never become active (even if you're on term's page). I'll investigate it later.
Comment #14
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedI've commited some changes to 7.x-1.x branch. Bug described earlier is fixed by new method of active trail changing and menu cache clearing (in code, no needs to clean by hands). "Side effect" of this fix is breadcrumbs seems to work on node's page now.
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedHello Dmitriy,
thank you for the work on the D7 port. I've installed the module and configured it for a content type. The problem is it does not seam to work at all times. When I reconfigure the settings the module does not work anymore and I never had a chance to get an active trail.
So could you please describe how to configure the module when I use the latest taxonomy menu. Thanks.
There are also some little code styling issues in the current release. Would you accept a patch to fix them?
Comment #16
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@mikewink: I can assume you're not using the latest 7.x-1.x-dev release, because it is packaged not right after commit but two times a day. This bug should be fixed in the latest one published at April 6. If it is not, please let me know. Don't forget to clear all caches after module update. You can use git and checkout 7.x-1.x branch to be sure you have the latest code which will be published in next 12 hours as dev release.
I'll use Coder module to fix all code styling issues before stable release. If your patch fixes some issues Coder module not reporting, please post it. Thanks a lot for your help.
Comment #17
Anonymous (not verified) CreditAttribution: Anonymous commentedHello Dimitry,
I did some slight changes to the obvious function comments in the module. I saw the todo that you will add the rest of the function comments. I also updated the info file a little bit to be more standard.
The module works for me quite well but I have not tested it thoroughly yet. One thing that strikes me right now is the missing "active" class on a leaf menu item. And I think I will send you another patch that add some meta information to the vertical tab in the content type settings. That gives you a fast overview about the current settings for taxonomy menu trails. What do you think?
Comment #18
andypostSuppose package should be Taxonomy
useless, should be removed from patch
Powered by Dreditor.
Comment #19
Anonymous (not verified) CreditAttribution: Anonymous commentedHello Andrey,
you are right the packaging informations are useless, but I know that Dimitry will take the useful parts. ;)
Regarding the package that is an option, because Taxonomy Menu Trails does not need Taxonomy Menu to work. So we should change to the package to Taxonomy as common ancestor.
Comment #20
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedPackage name "Taxonomy Menu" was derived from module with the same name. I don't want to change it because I suppose the most popular scenario is to use TMT together with Taxonomy Menu. This is convenient to have all these modules appear in one package. If Taxonomy Menu would change its package, TMT will follow it.
Thanks for patches, I'll use most of these changes in next commit (except those pointed by Andrey, of course).
Comment #21
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@mikewink:
Menu items in active trail get "active-trail" class, which is correct because menu item is not really active.
I think this would be great! Waiting for your patch. Please, don't use "Skip terms without enabled menu item" option for this functionality because probably I'll remove it soon.
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedHello Dimitry,
attached the patch for the vertical tab informations. It works pretty well, maybe you change the labels a bit. There is one patch file that adds the #attached properties to the taxonomy_menu_trails_form_node_type_form_alter() and the needed .js file.
You are right with the "active-trail" class, but should the leaf not also have an "active" class? Right now the leaf has only! the "active-trail" class and not an "active" class.
Comment #23
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedRecent changelog:
Still todos:
I'll finish it in a few days and release first stable version. Please, test it and report any problems. Be sure you have the latest code (checkout from git branch 7.x-1.x or wait for next 7.x-1.x-dev version, packaging will happen at most 12 hours after this comment).
Comment #24
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedMigration code is ready for testing. First stable D7 TMT version will be released in next weekend. Please, test all features.
Comment #25
markabur CreditAttribution: markabur commentedI'm still troubleshooting to figure out what exactly is happening, but I'm having a weird intermittent problem where suddenly for certain nodes TMT seems to not work. It kind of seems related to using a menu_block, but I'm not sure. Still digging...
@mikewink: the "active" class is only appropriate for menu items corresponding to the exact page you're looking at. Since a TMT term-leaf is one level *above* the current node, active-trail is correct in that case.
Comment #26
markabur CreditAttribution: markabur commentedTurns out caching was causing the intermittent behavior, and menu_block is incompatible with TMT. Its function _menu_link_get_preferred() interferes with the $preferred_links stuff that TMT is doing. I think when #942782: Custom menus never receive an active trail gets fixed then menu_block won't need to do that anymore.
Comment #27
Dmitriy.trt CreditAttribution: Dmitriy.trt commented@markabur: Thanks for your research! I'll make TMT compatible with Menu Block. And yes, we're all waiting for #942782: Custom menus never receive an active trail to be fixed in D7 core, but TMT 7.x-1.0 will be released anyway (with workarounds, of course).
Comment #28
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedCommited workaround for Menu Block to 7.x-1.x. Please, test it.
Comment #29
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedEverything seems to work now. 7.x-1.0 release it will be packaged in a few minutes. Thanks everybody for your help!
Comment #30
markabur CreditAttribution: markabur commentedSorry I didn't get a chance to test the menu block workaround until *after* the 1.0 release, but just did and it works great! Thanks!
Comment #31
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedPlease be sure you've read important notes about 7.x-1.0 release on the project page.
@markabur: Thanks for testing!