Closed (fixed)
Project:
Menu Position
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2010 at 02:59 UTC
Updated:
2 Dec 2011 at 11:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ericduran commentedHi @JohnAlbin,
I started working on this but I haven't finish. You need to use the entity api to get the data. I've already got the taxonomy form working. I'll try to post a complete patch tomorrow.
Regarding getting the vids of the current node you can do this:
Hope this helps, I plan on submitted a completely patch, but the entity API is also new to me, So I'm learning as I go. I'll probably try to put up a documentation page after I finish.
Comment #2
johnalbinSweet! The entity API is totally new to me as well. Thanks for the help!
Comment #3
johnalbinThe d6 version has a taxonomy plug-in now.
Comment #4
johnalbinHere's a not-yet complete patch for a taxonomy patch.
The menu_position_menu_position_rule_taxonomy_form() and menu_position_taxonomy_autocomplete() should be working. The other functions are only partially finished.
Comment #5
binford2k commentedsubscribe
Comment #6
artis.bajars commentedHere's a patch, continued upon the work started in #4, that gets taxonomy conditions working. Should apply cleanly to 7.x-1.x-dev. Please test.
Comment #7
rvilarThis works for me, but when I attempt to use the autocomplete widget to enter the taxonomy term an error ocur.
Comment #8
mrharolda commentedThe patch in #6 doesn't apply anymore on the current -dev. Any progress on getting this completed and merged into the module?
Comment #9
ropaolle commentedsubscribe
Comment #10
duvrai commentedsubscribe
Comment #11
valderama commentedsubscribe
Comment #12
joakimekroos commented+1
Comment #13
vikfroberg commented+1
Comment #14
akanouras commentedSubscribing
Comment #15
Shadlington commentedSubbing
Comment #16
itangalo commentedFor information: It is possible to use conditions on taxonomy terms by using this module's functionality from Rules.
For more information, check out #1163662: Functionality ported as a Rules action.
Comment #17
Anonymous (not verified) commentedThe patch from #6 worked for me, however I had to apply the patch using the old method "patch < patchname.patch" rather than the new git method described on the Drupal patch documentation page. I also had to fix a single merge failure, but no big deal.
Now things are working perfectly. Works just like the 6.x version did and allows me to really fine tune where menu items go. I haven't had any issues with the autocomplete field either. There is a slight issue where upon adding a term from the autocomplete field the taxonomy tab only shows what I typed, not what the actual term is, until I save the form. Then it shows the full term correctly. Not a huge deal, but might be slightly confusing.
Getting this committed to the dev branch would be great.
Comment #18
meus commentedsubscribe
Comment #19
jonasdowney commentedsubscribe
Comment #20
jlenni commentedsubscribe
Comment #21
rogical commented+1 seems not ok to set menu position for taxonomy term pages yet
Comment #22
Mark Theunissen commentedSubscribe
Comment #23
m3n0R commentedSubscribe
Comment #24
verdaechtig commentedSubscribe
Comment #25
valderama commentedif you are using menu_block this module could be an alternative..
http://drupal.org/project/context_menu_block
Comment #26
itangalo commentedAs pointed out in #16, it is possible to use Rules with Menu position to activate a menu item only if a node has a specified taxonomy term.
Here's a quick screencast showing how to go about it: http://nodeone.se/node/934
Here's an issue about getting more integration between Menu position and Rules: #1163662: Functionality ported as a Rules action
Comment #27
petrovichby commentedSubscribe
Comment #28
waynedpj commentedsubscribe
Comment #29
attiks commentedsub
Comment #30
cangeceiro commentedaccording to the commit logs this was added on oct 5th http://drupalcode.org/project/menu_position.git/commit/25ea476 but i dont see this in the latest beta or -dev branches that were released on the 10th and 11th respectively.
Comment #31
johnalbin@cangeceiro The drupalcode.org repository viewer doesn't do a good of showing this, but that commit is on a temporary feature branch called 7.x-1.x-963856. http://drupalcode.org/project/menu_position.git/shortlog/refs/heads/7.x-...
Comment #32
johnalbinLatest work-in-progress patch.
Comment #33
johnalbinOk. I think this works! :-)
Comment #34
anruetherThanks a lot, John! Is this already in latest dev?
Comment #35
awolfey commented#33 working for me.
Comment #37
mrharolda commentedCrap... Unless you're the maintainer of the module, of course...
Sorry for the noise!
Comment #38
mrharolda commentedAssuming it's fixed and committed into -dev