Hello,

I imagine there's an easy way to do this ... I just can't figure it out ... any help would be greatly appreciated. Using views, I created a page view with a corresponding menu item and now I'd like to delete that menu item. How would one delete a menu item that was created from a page view? I see the 'delete' option on menu items that point to nodes, but not on menu items that point to page views. Thanks very much.

Comments

xqbzzr’s picture

Its simple: Impossible!
Views needs a menu-path to sort of host the page there. For any page-view you will have to create such a menu-item. Only way to have it not displayed is to deactivate it in the menu-tree. That will hide it from normal user, but still have the functionality views needs.

StormDruper’s picture

Thanks, I understand that the view requires a menu path to sort of host the page, but I wouldn't expect it to be required after the view's path has been changed. In fact, when I changed the view path (under Page Settings) and saved the view again, a new menu item was created (pointing to the new path). So, I'm just trying to get rid of the previously created menu item which points to the previously used path and now results in a Page Not Found error. But it sounds like these menu items can't be removed at all? Can they be removed if the corresponding view is deleted?

I see that I can leave the menu item disabled ... I was just hoping to understand this a little better. Thanks again.

jaypan’s picture

Try clearing your cache.

Contact me to contract me for D7 -> D10/11 migrations.

StormDruper’s picture

Unfortunately, clearing the cache doesn't seem to fix the problem.

David.W’s picture

Look into the options of your view. Then select no menu item under the page options.

That should do the trick.

Otherwise, disable the menuitem

StormDruper’s picture

I thought that might work, but oddly enough, when I set the menu option to "No menu entry", the menu item continues to exist. I even tried to clear the cache after setting the menu option to "No menu entry", but that didn't work either. Perhaps it's not possible to remove a menu item that was created for a page view?

David.W’s picture

dunno, but you could try ;).
Could it be that the view has a taxonomy term?

Or maybe a other menu item module which locks the item?

lapucho’s picture

i have the same problem and i tried what you tried too.

so, is it possible to remove a menu item that was created for a page view?

Ashford’s picture

Did you try to clear Views cache?

admin/build/views/tools

HarlanSquitieri’s picture

clearing your catch is the best way in this case