WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
brofield:
Sorry, no easy solution that I can think of.
B
--- Quote from: phil on March 28, 2006, 02:33:00 PM ---your menu function looks quite impressive: I'm trying to have a menu like this, where all the
home | study | about
is there a way to get this?
I only get it to look like home | study | about |
obviously, the red vertical bar at the end is ugly. Does anybody have a solution for this?
Thanks a lot
--- End quote ---
brofield:
You are probably better to do this with the sitemap module. I will look to see what might be involved.
B
--- Quote from: bupaje on April 03, 2006, 02:29:35 AM ---Thanks. Looks like I was looking at an older doc. I did change it to [page] but it still shows the menu title. :?
I did have a suggestion for the future as well. Maybe you can add a feature to optional show the meta description/keywords as well. This can be useful in the sitemap for example where I can show the title and short description of each page. For example
Sitemap
Graphics
- Photoshop
- Plugins - Add features to your program with these free plugins. [keywords: art, design]
--- End quote ---
brofield:
I've released version 2.6.1 which should clear this problem up. See http://code.jellycan.com/show_menu2/
B
--- Quote from: bupaje on April 11, 2006, 09:12:18 PM ---@brofield
I spotted this error in my scripts.log file. Not sure if it is important.
PHP Warning: array_keys(): The first argument should be an array in /modules/show_menu2/include.php on line 124
--- End quote ---
brofield:
--- Quote from: phil on March 28, 2006, 02:33:00 PM ---your menu function looks quite impressive: I'm trying to have a menu like this, where all the
home | study | about
is there a way to get this?
I only get it to look like home | study | about |
obviously, the red vertical bar at the end is ugly. Does anybody have a solution for this?
--- End quote ---
I take it back. Of course there is a way to do this. See the demo site at http://code.jellycan.com/sm2test/ and have a look at the "Root Only (TEXT)" sample. Essentially you set the normal item to " | link" and set the first item to "link".
Cheers,
Brodie
kickarse:
Just curious if you thought about adding functionality such as this
(from your site :))
--- Code: ---<div class="menu">
<ul class='menu-top'>
<li class='menu-sibling'><a href='http://code.jellycan.com' target='_top'>Home</a></li>
<li class='menu-sibling'><a href='http://code.jellycan.com/simpleopt/' target='_top'>SimpleOpt</a></li>
<li class='menu-sibling'><a href='http://code.jellycan.com/simpleini/' target='_top'>SimpleIni</a></li>
<li class='menu-sibling'><a href='http://code.jellycan.com/moji/' target='_top'>Moji</a></li>
<li class='menu-sibling'><a href='http://code.jellycan.com/langselect/' target='_top'>LangSelect</a></li>
<li class='menu-expand menu-current'><a href='http://code.jellycan.com/show_menu2/' target='_top'>show_menu2</a>
<ul><li class='menu-child'><a href='http://code.jellycan.com/sm2test/' target='_top'>Test</a></li></ul>
</li>
<li class='menu-sibling'><a href='http://code.jellycan.com/macros/' target='_top'>Macros</a></li>
<li class='menu-sibling'><a href='http://code.jellycan.com/comments/' target='_top'>Comments</a></li>
</ul>
</div>
--- End code ---
Thought about giving the a href a class of what the name of the link is like so
--- Code: ---<li class='menu-sibling'><a href='http://code.jellycan.com/comments/' class='comments'>Comments</a></li>
--- End code ---
Something that would be populated by $page_id or $title ?
This would help if you wanted to style the link with pictures as navigation instead of text. Giving complete control over the menu look.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version