Removing a linked page from navigation without deleting that page

Tom Museth asked on April 19, 2018 06:10

I hope I'm overlooking something basic here, but it appears in our installation of Kentico (old version - 8.2) I cannot remove a linked page from a menu without deleting that page.

I have a folder called "Navigation" which represents the horizontal nav. There were 3 linked pages in here. I added a 4th page - there's a + sign by which I link to a page, and that link appears in the horizontal nav.

But I cannot remove a linked page from that Navigation folder. There's no corresponding "remove" icon. The only option is to "delete" - and that will delete the entire page, as well as removing that page's link from the nav.

I don't wish to delete a page, just remove its link from the nav. I cannot see any other option for this. If I go to that page's Properties, then uncheck the Show In Navigation checkbox, that will remove it from the main, collapsible menu, but not the horizontal nav.

Am I correct in thinking there's only an option to add a linked page to the nav, but not to remove it? I can't believe there's no way around this.

Recent Answers

Trevor Fayas answered on April 19, 2018 14:34

Check the horizontal nav, most likely it's a repeater and repeaters don't use the hide in navigation by default so you have to add the where "DocumentMenuItemHideInNavigation = 0", then that checkbox will be honored

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on April 19, 2018 15:35 (last edited on April 19, 2018 15:41)

A linked page is a mirror of your other page, i.e. whatever changes you do on linked page affects automatically the your page and vice versa. It is like a virtual representation of your page in a different folder of the tree of content.

If we take your example - this essentially a way to build a navigation without copy/pasting menu pages. Lets say you have top navigation menu and bottom navigation menu, and you want only some major items from the top menu to appear in the bottom menu. You create a bottom navigation folder and add there linked pages (linked to menu items in the top menu). So lets say your top menu has 20 items, but only 5 of them should appear at the bottom. You add 5 linked pages to bottom navigation menu folder. Your bottom menu repeater should display everything from this bottom menu folder.

So yes the only way to remove from the bottom menu is to delete the linked page, but that is OK. You don't delete the actual menu item you delete it is virtual representation of it.

p.s. Technically you can create Boolean properties for your menu item page type, i.e show in the top navigation and show in the bottom navigation, so each your menu item has 2 extra check boxes. But you just need to understand how to use linked pages and you'll be ok.

0 votesVote for this answer Mark as a Correct answer

Tom Museth answered on April 26, 2018 08:34

Thanks guys. It was as simple as that - deleting the page link. I would say the alert presented to a user before doing this is at the heart of the problem - if I see an alert asking me to reaffirm if I want to "delete this page", I'm not going to do it, as I'll assume the page is being deleted, not the virtual representation of that page.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.