WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2 (hidden page)
mjm4842:
Thanks for taking the time to contribute to this discussion DarkViper.
I am actually already taking advantage of this option. The problem is, it doesn't just hide the menu options that are hidden, it hides all of their children as well, even if these are set to Public visibility. For example:
Main Menu Item 1 (set to public)
Main Menu Item 2 (set to public)
Menu Item 2.1 (set to hidden)
Menu Item 2.1.1 (set to public)
Menu Item 2.1.2 (set to public)
Menu Item 2.1.3 (set to public)
Main Menu Item 3 (set to public)
I don't want menu item 2.1 to be visible in the main menu. However if a link takes you to that page, I want the user to see menu 2.1.1, 2.1.2 and 2.1.3 but I still don't want menu item 2.1 to be visible.
In a practical application, Menu Item 2.1 could be a course and Menu Item 2.1.1 would be modules in the course. When someone gets access to the course, they should be able to see the modules in it.
The reason I don't want hidden menu items to show up when accessing the pages is because this is not necessarily appropriate for other parts of the website.
If you have any other suggestion, it would be much appreciated.
With warmest regards,
Michael
Argos:
Hm... it seems a bit odd to me that you want (certain) visitors to see child pages without a parent. It may feel for them like the information has no hierarchical context. Why not put a little info on the parent page, and a droplet showing links to all child pages? That would make sense. Your idea doesn't make sense to me, and that's probably why it's so hard to create in WB, if possible at all.
I'm not trying to get into a debate, by the way, it's just my thoughts when I tried to envision your idea...
mjm4842:
Hi Argos,
Thank you for taking the time and putting in the effort into trying to envision scenarios where this could be applicable. I realize you are not trying to start a debate butrather simply trying to understand where I am coming from. The intent expressed in an email can sometimes be misinterpreted and I want you to know that really appreciate your attempt at keeping this conversation moving in a positive direction.
What I am trying to accomplish is to make certain branches of my website accessible only through direct link access. The following is hopefully a less abstract example of a possible site structure:
Home (public)
Booklets (public access)
-- HTML (hidden)
-- Chapter 1 (public)
-- Chapter 2 (public)
-- Chapter 3 (public)
-- JAVSCRIPT (hidden)
-- Chapter 1 (public)
-- Chapter 2 (public)
-- Chapter 3 (public)
About (public)
-- Privacy Policy (public)
-- Important Notices (public )
Hidden Pages (hidden)
-- Terms and Conditions (hidden- used by Bakery)
-- Other misc. hidden pages.
Contact Us (public)
HTML and JAVSCRIPT would be titles of on-line booklets that I want to give away in exchange for a person's name and email address. As such, the booklets should not appear in any menu which is why these pages are set to hidden.
To make this work, I use MPForm to create those Free Stuff type forms on my site. I also enable MPForm to automatically send a confirmation email back to the user. That email has been customized to contains a direct link to the on-line book. MPForm is also set to automatically send me a confirmation email me containing their contact information and as well as the title of the booklet that they were interested in so that I can personally follow up with each visitor who took advantage of my free offer. A perfectly automated system which required little more than initial setup on my part.
The way show_menu2 works right now, all they will see on that page is the booklet's home page, which contains a thank you/welcome type message. Even though the Chapter pages are set to be public, the Chapters will not appear in the menu. It is important that the chapters appear in the menu so that users can easily navigate from one chapter to the other.
I would rather not get into creating and managing thousands of WB user accounts for free giveaways and I don't want to enable visibility of hidden pages in the menu because then other hidden pages on my site, such as the Terms and Conditionspage for Bakery (and others), that would end up also appearing in the menu when they really should not.
Don't get me wrong. I can certainly see your point in making the page visible in the menu when you are on the page itself. Unfortunately there are also many situations where this is not desireable. For example, If someone was accessing the "Terms and Conditions" page, I would not want "Hidden Pages" to appear in the menu.
Hopelly this clarifies things for you. Let me know if you need another example using something other than booklets.
With warmest regards,
Michael
Argos:
Hi Michael,
thanks for your efforts to make it more clear. It's a lot of work to create such a structure with the forum software :-D
What you may give a try is using the SiteMapChild droplet: http://www.websitebakers.com/pages/droplets/official-library/navigation/sitemapchild.php.
I tested it, and it works just like you want, I think. I created a hidden parent and three visible child pages. I added droplet to both parent and childpages. Since the parent has ID 13 in my testsite, the droplet is [[SiteMapChild?start=13]]
If you put the droplet in a DIV, you can style it with CSS to look like a sub menu.
mjm4842:
Thank you for your research and your patience Jurgen. There are so many modules, snippets and droplets that I have not managed to make my way through all of them yet.
Ideally it would be nice to be able to fix show_menu2 however I will definitely give the droplet a try and see how it goes.
Thanks again.
With best regards,
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version