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.
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.
The redirect instead page would be great solution, but you can't add child pages to it :/
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.
The link you provided is dead :/
The link should work now.
Must give a try. I'm little bit afraid of these addons, as they tend to grow old and unsupported :/. Thanks!
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.
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.
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.
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.
@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
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.
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.
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.