Problem/Motivation

I made a patch for a problem of mine on a simple website. I needed the breadcrumbs to follow the main menu trail. But I did not want the corresponding entries to show in my main menu block as childs.

Proposed resolution

I added the option to hide the created/updated entry in the menu rules configuration. See the included patch.
I don't really now if it is of any interest for other case use, but as it was fairly easy to code, here it is.

Remaining tasks

Probably needs review, as I also added a test over an unrecongnized object data ($node->original) in case of a new entry creation.

User interface changes

Under both "add menu entry" and "update menu entry" rules actions there is now a last option to "hide the created entry"

API changes

none

CommentFileSizeAuthor
hide_entry.patch3.13 KBdefred

Comments

ordermind’s picture

Status: Active » Needs work

It's a good idea, but I think it would be better if instead of a "Hidden" boolean which defaults to false, you would make an "Enabled" boolean which defaults to true, since that's what it looks like on a standard menu item form. That would make it more intuitive to users.

ordermind’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

No update in a year it seems. If anyone feels like taking this on, please reopen the issue.

peterlolty’s picture

Version: 7.x-1.3 » 7.x-1.4
Category: Feature request » Task
Status: Closed (won't fix) » Active

I need this...

ordermind’s picture

Status: Active » Closed (won't fix)

I repeat, if someone wants to take this on then please reopen the issue. That means whoever reopens the issue should attach a patch.