Closed (fixed)
Project:
Menu Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2009 at 00:28 UTC
Updated:
17 Nov 2010 at 02:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Flying Drupalist commentedSubscribe
Comment #2
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 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 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 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 commentedComment #7
jogebau commentedIm on drupal 6 and really intereseted in this. please keep going...
Comment #8
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 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 commentedsubscribe
Comment #11
preventingchaos commentedI'm very interested in this, too.
subscribing
Comment #12
scotthenning commentedAgreed. This would be really helpful...
Comment #13
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 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 commentedany news? subscribing
Comment #16
George2 commentedi have a feeling this may well be impossible in 6
Comment #17
gunzip commentedsubscribe
Comment #18
dropchew commentedsubscribe
Comment #19
Anonymous (not verified) commentedIs this ready for testing on 6?
Comment #20
design.er commentedawesome! I also have to subscribe. It will save a lot of peoples life. :)
Comment #21
mgladding commentedSubscribing!
Comment #22
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 commentedSubscribing...
Comment #24
mitchell commentedsubscribe
Comment #25
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 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 commentedWhy cant this module just be an extension of the 'me' alias module.
G
Comment #28
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 commentedsubscribing
Comment #31
design.er commentedI tested the module from #6.
I tried to create a link to the account-edit page with
user/[user-id]/editand 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 commentedSubscribing
Comment #33
luxx commentedSubscribing
Comment #34
TC44 commentedThis would be very useful. Thanks for the efforts.
Comment #35
Aerodynamo commentedI agree, this would be great! I would love a D6 port.
Comment #36
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 commentedsub +1
Comment #38
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 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 commentedjweberg: mod rewrite for apache I think
Comment #41
himagarwal commentedsubscribing
Comment #42
drupov commentedsubscribing
Comment #43
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 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 commentedsubscribe. This feature would be great, either in D6 or 7.
Comment #47
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 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 commentednothing to add... just subscribing to the thread.
Comment #50
benone commentedsubscr
Comment #51
GeekyLass commentedSubscribing.
If I was a coder I would help but ... unfortunately my strength does not lie in this area.
Comment #52
gilcpd commentedsubscribing
Comment #53
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 commented+
Comment #55
summit commentedSubscribing,
How about a D6 version please?
greetings, Martijn
Comment #56
mitchell commentedViews build menu may be useful to those watching this issue.
Comment #57
not_Dries_Buytaert commented+1 for a D6 solution
Comment #58
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 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 commentedWorks!
@ygerasimov: Thanks for the great job!
Comment #61
ygerasimov commentedComitted to DRUPAL-6--1 branch.
Comment #62
develcuy commentedWith the release of D7 beta, the D5 branch of this module is now archived.