Hi,
I have a vocabulary on which I want to use taxonomy menu, but I would like to have the ability to disable one or more terms from showing in the menu.
I have for instance france, southern-france, northern-france in the vocabulary. And I do not want to show france in the menu.
The term france holds terms so it is not good enough to disable empty terms.
Anyone please?
Thanks a lot in advance for your reply!
Greetings, Martijn
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 1426518-1.x-20-hidden-links.patch | 1.08 KB | geo |
| #14 | 1426518-2.x-14-hidden-links.patch | 532 bytes | dstol |
| #12 | 1426518-2.x-12-hidden-links.patch | 524 bytes | dstol |
Comments
Comment #1
dstolThanks for the suggestion. I'm marking this as postponed for the time being. A quick work around would be to display none the menu item's li. There should be a decent menu selector like menu-item-965.
Comment #2
suldan commentedWhen I disable a menu item in the menu module, it will automaticly be enabled on next cron or content submit (?) again.
Right now I can't disable selected menu items controlled by taxonomy menu (D 7.12 / Taxonomy Menu 1.2). I didn't try out the latest dev.
Comment #3
Baber Javed commentedI am facing the same issue. Disabling menu items works but the menu items start appearing again once we run cron or submit content for that category again
Comment #4
barrett commentedIs this request any different from what is requested, and being worked on, in #1123152: Hide taxonomy term from menu (D6)?
Comment #5
johnv@Barrett, I think they are the same. But that's a D6 patch. Let's keep two separate versions?
@suldan, your problem describes a problem with the #1104028-94: Option 'Sync menu' in D7 , which got in as of April 19.
I'll quote #73 of that issue:
- set a taxonomy_menu to 'synced'
- set one of the menu-items to 'disabled' (via normal menu maintenance)
- change the taxonomy (add a term)
- the taxonomy_menu is has now 2 new items: the new one, and the disabled one is back enabled.
Comment #6
hles commentedComment #7
seanrMy solution to this problem was this:
Comment #8
johnvBetter title.
This is the D6-version: #1123152: Hide taxonomy term from menu (D6)
Comment #9
johnvComment #10
mrpauldriver commentedIt would be good to have a solution for this, but I'm not a coder I am unsure how to apply the suggestion at #7.
My client has a commerce site with seasonal products which he'd like to hide from the menus at certain times of year, but for SEO reasons he'd like to retain the normal taxonomy listings.
Of course it be would be very simple to implement with css but a bit fiddly for my client.
Any suggestions would be most appreciated. Thanks
Comment #11
dieuweI think this is a bug, not a feature request. Every time the term is saved, the "hidden" property of the menu is overwritten. This should not be the case. If someone has disabled a menu item it should stay like that until they enabled it again.
7.x-1.x-devfix:Replace L691 of
taxonomy_menu.moduleWith this:
7.x-2.0-alpha2fix:Replace L171 of taxonomy_menu.module
With this:
Comment #12
dstolComment #14
dstolComment #15
gable commentedI've changed it to a more precise substitution:
as the #14 patch caused errors for me while editing and saving a taxonomy term.
Comment #16
annya commentedgable pay attention that #14 patch is suitable for 7.x-2.x-dev version. I believe that you used 7.x-1.x-dev version.
Comment #17
annya commenteddstol patch #14 is great. I think we can commit it.
Comment #18
dstolComment #20
geo commentedHi,
I've created patch for 7.x-1.5
Comment #21
rcodinaI tested patch #20 for version 7.x-1.5 and it works like a charm. Many thanks!
@dstol Was patch on #14 commited on 7.x-2.x-dev?
Comment #22
johnpitcairn commentedPatch at #20 works for me with Taxonomy Menu 7.x-1.5 in Commerce Kickstart 2.
If the 7.x-2.x patch is in, status should be "to be ported"?
Comment #23
summit commentedHi,
I think 1-x is the current function which is in production and development?
Than I think this patch should be put into RTBC?
Sorry if I am wrong, than please roll back.
greetings, Martijn
Comment #24
hanoiiI am current following up a request on something like this, I reviewed #20 which is nice little patch, but it will only work for menu items updates, not menu as that simply deletes all and then re-add.
Comment #25
hanoiiI just contributed Taxonomy menu extras.
It attempts to sort this out in a way that will work with reviews. I still think #20 is a good patch that's worth committing although it's not really necessary with this new module.The module attempts to sort other small change to the menu configuration that should be kept.
The module is overall simple and in a way, even simpler if its functionality is added to the module. If the maintainers are interested, I can attempt to submit the same functionality in a patch.
Comment #26
dstolThanks!