Closed (works as designed)
Project:
Menu Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2011 at 20:23 UTC
Updated:
23 Mar 2016 at 16:43 UTC
Jump to comment: Most recent
Comments
Comment #1
dizarter commentedTry changing module weights, and see if that helps.
Comment #2
beumont commentedwhat do you mean by that ?
Comment #3
dealancer commentedThis means if those modules use same hook, to do something menu item they need to be executed in proper order. Order is stored in modules table in database. The easy way to change that order is to use Weight module http://drupal.org/project/weight.
I don't know if it helps, but try to make menu_token to be before those modules or after, and reports us results.
Comment #4
oskar_calvo commentedHello I find the same problem.
My solution is to enable the util module, and give this:
menu per role : weight 5
token menu : weight 0
It's works now
Thanks
Oskar
Comment #5
SchwebDesign commentedthanks oskar_calvo, i used this solution as well and so far so good
Comment #6
hookdump commentedThank you so much oskar_calvo!!!! Your solution works perfectly.
I cannot believe I didn't think of it myself heheh
Comment #7
drupalreggie commentedI have a menu item that uses tokens but I also need this to be controlled by roles. Is there a way to achieve this?
Regards
Comment #8
develcuy commentedD6 is discontinued.
Comment #9
mototribe commentedthanks a bunch! Worked for me too
Comment #10
drclaw commentedHello,
I noticed this issue too, specifically with the menu_item_visibility module. Setting the module weight (or better yet just using hook_module_implements_alter() to reorder the implementations of translated_menu_link_alter) does indeed fix the problem, but is it not worth discussing why menu_token is resetting the menu item's access? As far as I can tell the reason this is an issue is from this bit of code in menu_token.module on line 160 in menu_token_translated_menu_link_alter()
Why do we need this? The menu item should already have it's access array key set. There shouldn't be any reason to override it.. or should there?... Maybe I'm missing something there?
Comment #11
funana commentedCrosspost: Menu link visible as vistor with anonymous user box unchecked (incompatibility with menu_token?)
Thanks again for the patch, drclaw!
Comment #12
kingfisher64 commentedCan someone who is managing the mod please reply to what drclaw wrote in #10?
He has offered potential solutions to these issues.
Many thanks
Comment #13
Horroshow commentedAnyone?
Comment #14
R-H commentedSolution #4
My solution is to enable the util module, and give this:
menu per role : weight 5
token menu : weight 0
Works for me
Comment #15
develcuy commentedUPDATE! The default weight of Menu Token is now 10, so you need to set Menu per role weight a bit higher, say 15.
Please test latest dev build and report your feedback!
Comment #16
develcuy commentedComment #17
develcuy commented