Dummy page

Permalink
I wonder if it's possible to create something like a dummy page. It show up in navigation, but isn't an actual page.

Would be very useful for Bootstrap menu drop-downs, where typically The hovered element (parent) is not it self a link, it just serves to open sub-menu with actual links.

View Replies: View Best Answer
trsh replied on at Permalink Reply
The redirect instead page would be great solution, but you can't add child pages to it :/
stewblack23 replied on at Permalink Best Answer Reply
stewblack23
Just use the Manual Nav Add on.http://www.concrete5.org/marketplace/addons/manual-nav1... You can create all the dummy links you want while using bootstrap. I do that with many of my client sites.
trsh replied on at Permalink Reply
The link you provided is dead :/
stewblack23 replied on at Permalink Reply
stewblack23
The link should work now.
trsh replied on at Permalink Reply
Must give a try. I'm little bit afraid of these addons, as they tend to grow old and unsupported :/. Thanks!
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi trsh,

I believe there are a few options for this.

One is to create a custom template for the Auto-Nav block. In the custom template you would give the top level parent page links an href attribute value of "#". You could then add JavaScript to prevent the links from being "clickable" using preventDefault().

Another option might be to use JavaScript only by selecting the top level parent page links, changing their href attributes to "#", and preventing their default click behavior using preventDefault().

Both options allow you to create pages that would be in the sitemap, which allows you to nest pages and more easily manage them.
trsh replied on at Permalink Reply
The page would be still available, when inputting the Link directly into browser. And still would take a record in database, so.. I guess I try that manual-nav. first.
stewblack23 replied on at Permalink Reply
stewblack23
Not having a DB record of a page is exactly my I use Manual Nav. You can put the nav in any order you wish and add icons on each link directly in the interface. Plus creating links that don't go anywhere is easy. Just put "#idname" in the href area.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@trsh
@stewblack23

Manual Nav is a very useful add-on, the only limitation is that it provides one "level" for navigation. It does not create nested navigation, for example levels for a drop-down.
stewblack23 replied on at Permalink Reply
stewblack23
True. I forgot that you could not nest with it. I would use the Mega Menu 5.7 plugin for drop downs menus. Then maybe go into to the view file for the plugin and put in the bootstrap classes I need.
trsh replied on at Permalink Reply
Levels for drop-downs (so it's +3 levels in summary) is anyway a bad Idea in my opinion. It's like when program you shouldn't do something like if(xx){ if(yy){ if(zz){ do(); } } } :D. Very hard to read.