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.
The Menu Breadcrumb module combined with this one would allow for very easy breadcrumb creation. As a side note, creating the menu item but having it in a disabled state would be quite nice. Adding an action for updating the menu would be handy as well; for use with views bulk operations.
Comment | File | Size | Author |
---|---|---|---|
#58 | menu_token.tar_.gz | 1.38 KB | ygerasimov |
#6 | menu_token.tar_.gz | 8.04 KB | DevElCuy |
Comments
Comment #1
Flying Drupalist CreditAttribution: Flying Drupalist commentedSubscribe
Comment #2
DevElCuy CreditAttribution: DevElCuy commentedAwesome ideas!
What about a code sprint? Drupal Perú is going to have the next meet on February 21, is that day ok? more suggestions?
Blessings!
Comment #3
DevElCuy CreditAttribution: DevElCuy commentedI have done a first attempt to migrate, seems very tricky and hard...
Problem is that in D5, $_menu is global, but in D6, menu links and routes work separated and are menu tree is saved to static variables...
Right now, I'm looking for some way to override D6 core functions.
Comment #4
steveadamo CreditAttribution: steveadamo commentedi'm sure this is grossly oversimplified, but i ran the D5 version through coder, and worked out all the "kinks" it found... it succesfully loaded in D6...
problem is, i never used the version in D5, so im not sure where to look to see if it installed correctly... ;)
installing a new D5 site to test...
Comment #5
DevElCuy CreditAttribution: DevElCuy commentedHere is what I have at the moment. All about interface looks the same as in D5, but token replacements are not working yet.
Blessings!
Comment #6
DevElCuy CreditAttribution: DevElCuy commentedComment #7
jogebau CreditAttribution: jogebau commentedIm on drupal 6 and really intereseted in this. please keep going...
Comment #8
ldbl CreditAttribution: ldbl commentedI test it seems you bypass internal checking if url is valid.
Some idea how to print this callbacks on menu_alter. I can see them only when I clear the cache.
I want to play around.
Comment #9
DevElCuy CreditAttribution: DevElCuy commentedThe problem is that new menu system stores general menu definition in 3 static variables, they are for internal usage of functions only.
What I'm thinking now is to provide menu_blocks or hook in themes.
Blessings!
Comment #10
peddecke CreditAttribution: peddecke commentedsubscribe
Comment #11
preventingchaos CreditAttribution: preventingchaos commentedI'm very interested in this, too.
subscribing
Comment #12
scotthenning CreditAttribution: scotthenning commentedAgreed. This would be really helpful...
Comment #13
DevElCuy CreditAttribution: DevElCuy commentedI'm happy to know you are interested on this module. But I would like to have your feedback into an sprint.
I have created a doodle event so you can choose the dates you have time into the next week, I'll be available via skype and IRC.
http://doodle.com/wbc4dmhhsvnybb4u
Hope you can participate.
Blessings!
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedheads up, #322669: Hiding option for automenu implements making the new menu item being disabled. Could probably grab some code from that module... actually if Auto Menu had token support, that would be quite amazing. Found that module today with this search
http://drupal.org/project/modules?filters=drupal_core:87&text=Menu - about 35 legitimate menu modules for D6
Comment #15
restyler CreditAttribution: restyler commentedany news? subscribing
Comment #16
George2 CreditAttribution: George2 commentedi have a feeling this may well be impossible in 6
Comment #17
gunzip CreditAttribution: gunzip commentedsubscribe
Comment #18
dropchew CreditAttribution: dropchew commentedsubscribe
Comment #19
superdorx CreditAttribution: superdorx commentedIs this ready for testing on 6?
Comment #20
design.er CreditAttribution: design.er commentedawesome! I also have to subscribe. It will save a lot of peoples life. :)
Comment #21
mgladding CreditAttribution: mgladding commentedSubscribing!
Comment #22
DevElCuy CreditAttribution: DevElCuy commentedAwesome! this is what I call "community" presure, If some of you want to put "hands on" for this module, please join the codesprint at: http://groups.drupal.org/node/21813
I will start working on this module at 6pm GMT -5 this Saturday 16
Blessings!
Comment #23
Heilong CreditAttribution: Heilong commentedSubscribing...
Comment #24
mitchell CreditAttribution: mitchell commentedsubscribe
Comment #25
Heilong CreditAttribution: Heilong commentedI took a look at the module " Me alias " , which contributed a bit to what I wanted : http://drupal.org/project/me , could be useful.
Comment #26
DevElCuy CreditAttribution: DevElCuy commentedD6 menu system does not allow rewrite as was possible in D5. Which is the solution? to provide a "Menu Token" version for every available menu block and add theme variables for primary and secondary links.
Another challenge is to manage the tokenized menu entries, it needs a custom interface because core will not list invalid menu links.
CONCLUSION
Menu Token module will not be integrated with D6 core.
So ...
Notice a call to function menu_token_tree(), which is a also a "rewritten" function for menu_token, and just redirects to menu_token_tree_output() another rewrite, as seen below
ATM, function menu_token_tree_output() is not ready, it should rewrite paths with tokens.
Comment #27
tomhung CreditAttribution: tomhung commentedWhy cant this module just be an extension of the 'me' alias module.
G
Comment #28
DevElCuy CreditAttribution: DevElCuy commented@tomhung, menu_token.module is intended to bring the power of token to menu paths. It is not just about user->uid, but about current loaded node, its taxonomies, cck fields, etc... So you can build "intelligent" menu items which will appear according to the context.
Comment #29
jstollerSubscribe.
May the force be with you!
Comment #30
redijedi CreditAttribution: redijedi commentedsubscribing
Comment #31
design.er CreditAttribution: design.er commentedI tested the module from #6.
I tried to create a link to the account-edit page with
user/[user-id]/edit
and activated the checkbox "user tokens".When click on submit I'm landing on the page where all the links of a category (i.e. primary links) are but it seems that this link was not saved. I tried it several times, always with the same result.
Please let me know if you need more information.
Regards,
Stefan
Comment #32
shawnspqr CreditAttribution: shawnspqr commentedSubscribing
Comment #33
luxx CreditAttribution: luxx commentedSubscribing
Comment #34
TC44 CreditAttribution: TC44 commentedThis would be very useful. Thanks for the efforts.
Comment #35
Aerodynamo CreditAttribution: Aerodynamo commentedI agree, this would be great! I would love a D6 port.
Comment #36
George2 CreditAttribution: George2 commentedagain, when i looked at making a patch, because of the HUGE differences between the menu system of 5 and 6, i believed, and still do, a port will be impossible.
Comment #37
jweberg CreditAttribution: jweberg commentedsub +1
Comment #38
jweberg CreditAttribution: jweberg commentedI think incorporating token replacement for the menu link title would be great. I'm looking for a solution for this right away. I've scoured the forums and didn't find anything. Does anyone have a solution for this?
Comment #39
mani.atico CreditAttribution: mani.atico commentedAlthough it might be impossible I have to subscribe.
I haven't checked the proposal throughfully, but of what I know about Drupal's menu system and of what I have read in this issue I think that maybe the only pausible solution is creating a patch to add a hook to menu_link_load function.
Comment #40
luxx CreditAttribution: luxx commentedjweberg: mod rewrite for apache I think
Comment #41
himagarwal CreditAttribution: himagarwal commentedsubscribing
Comment #42
drupov CreditAttribution: drupov commentedsubscribing
Comment #43
himagarwal CreditAttribution: himagarwal commentedIs there possibilities that this module will be ported to drupal6, since it has already been more than 3 months that we have heard anything from develCuy.
Comment #44
jstollerAnd if it's not going to make it to D6, have the changes in D7 improved the future outlook for this module any?
Comment #45
himagarwal CreditAttribution: himagarwal commentedas suggested by #25, the "Me alias" http://drupal.org/project/me did the trick for now. But a D6 port somehow with hack would be fantastic!
Comment #46
pimousse98 CreditAttribution: pimousse98 commentedsubscribe. This feature would be great, either in D6 or 7.
Comment #47
DevElCuy CreditAttribution: DevElCuy commentedCurrent implementation of D6 makes it really hard, as said before, would need to create a new table for storing tokenized links. Problem is that we'll have to forget about integration with other modules. So, this is a menu sub-system, running in top of core's menu system.
I don't like this scenario but is all we can do without hacking the core(top rule). Now, if there is real interest, please consider sponsoring the project, now that you know how far we can go, which is not that bad :)
Comment #48
jrabeemer CreditAttribution: jrabeemer commentedWow, the premise of this module is awesome to think about. Yes, me module fits one specific need, but this is a generalized solution that we all need.
+1 for D6 port. +2 for D7 :-)
Comment #49
mrfelton CreditAttribution: mrfelton commentednothing to add... just subscribing to the thread.
Comment #50
benone CreditAttribution: benone commentedsubscr
Comment #51
GeekyLass CreditAttribution: GeekyLass commentedSubscribing.
If I was a coder I would help but ... unfortunately my strength does not lie in this area.
Comment #52
gilcpd CreditAttribution: gilcpd commentedsubscribing
Comment #53
Kars-T CreditAttribution: Kars-T commentedHi
what is the status of this module and issue?
Couldn't we rewrite the links by using
http://api.drupal.org/api/function/theme_menu_item_link/6
and rewrite any tokens in the URL in the theming layer?
This would be quiet easy and we could use the current global context.
Comment #54
k3vin CreditAttribution: k3vin commented+
Comment #55
Summit CreditAttribution: Summit commentedSubscribing,
How about a D6 version please?
greetings, Martijn
Comment #56
mitchell CreditAttribution: mitchell commentedViews build menu may be useful to those watching this issue.
Comment #57
not_Dries_Buytaert CreditAttribution: not_Dries_Buytaert commented+1 for a D6 solution
Comment #58
ygerasimov CreditAttribution: ygerasimov commentedPlease review Drupal 6 version for this module. Please test and let me know your comments.
@develCuy Can I request maintainership for this module?
Comment #59
DevElCuy CreditAttribution: DevElCuy commentedThanks for the new version suggestion, I have given you commit access, will evaluate your progress to give you full maintainer permissions.
Comment #60
drupov CreditAttribution: drupov commentedWorks!
@ygerasimov: Thanks for the great job!
Comment #61
ygerasimov CreditAttribution: ygerasimov commentedComitted to DRUPAL-6--1 branch.
Comment #62
DevElCuy CreditAttribution: DevElCuy commentedWith the release of D7 beta, the D5 branch of this module is now archived.