WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
Craxx:
Please could somebody help:
The template Multiflex-1 makes this error in cgi_error.log :
show_menu2 error: no flags from group 1 supplied! Exactly one flag is required!
best regards
Craxx;)
aldus:
This means that one of the following predefined constans are missing at the 4. argument/param
__before__! SM2_PRETTY ...
SM2_ALL
SM2_TRIM
SM2_CRUMB
SM2_SIBLING
So e.g.
--- Code: ---<?php
show_menu2(0, SM_ROOT, SMROOT+1, SM2_ALL | SM2_PRETTY, ....
--- End code ---
will do the trick ...
Kind regards
Aldus
mjm4842:
Hi there,
I am using show_menu2 version "4.9 corrected" on WebsiteBaker 2.8.1 in order to prevent hidden menu items from appearing when you are actually on the hidden page. This works great!
The prolem is that child pages which are set to visible of of a page which is set to hidden don't appear in the menu. Allow me to illustrate with an example for those of you who are more visual:
MY HIDDEN SITE (set to hidden)
+-- HOME (set to visible)
+-- ABOUT (set to visible)
+-- CONTACT (set to visible)
YOUR HIDDEN SITE (set to hidden)
+-- HOME (set to visible)
+-- ABOUT (set to visible)
+-- CONTACT (set to visible)
In the above example, MY HIDDEN SITE and YOUR HIDDEN SITE are hidden as per their setting. However, when I access these two pages, HOME, ABOUT and CONTACT are remain hidden, even through they are set to be visible.
What I want is to have these three HOME, ABOUT and CONTACT pages become visible when I am on the hidden MY HIDDEN SITE and YOUR HIDDEN SITE pages.
If you think you can be of help, it would be most appreciated.
With best regards,
Michael
Luisehahne:
In Add-ons Modules Code snippets you can download show_menu2 Version 4.9.3
Dietmar
mjm4842:
Just in case you are are looking for it, Luisehahne's latest version 4.9.5 of Show Menu2 can be found at:
http://www.websitebakers.com/pages/admin/core-replacements/show_menu2.php
From what I can tell, here is a list of the changes:
New $aOptions
SM2_XHTML_STRICT: From all links, created by [a] or [ac], the 'target' - attribute will be removed to preserve the XHTML-Compatibility.
SM2_NO_TITLE: Supress the value of the 'title'-attributes on links which are created by [a] or [ac] formatted links.
New Format Strings
[menu_icon_0]: URL poining to an image for display normal - status
[menu_icon_1]: URL poining to an image for display active/hover - status
[page_icon]: URL poining to an image relating to the current page
New Conditional Formatting Operand
target: Test against the target attribute (on left) or a string containing a possible target (on right)
I could not find a list of changes so if you notice any other changes, please share with the rest of us.
Michael
Navigation
[0] Message Index
[*] Previous page
Go to full version