Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:23:51 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155524 Posts in 21712 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Silly Simple Menu Question  (Read 612 times)
Akarin

Offline Offline

Posts: 3


« on: July 16, 2009, 05:36:48 PM »

I don't know if it matters, but I am using showmenu2.

How do you create a non-clickable placeholder for a menu?  In Joomla this is called a Seperator menu item.

For instance, I have a top level menu item called "Contact Us" with two sub menus "Directory" and "Directions".  The problem is that I don't want users to click "Contact Us" and be taken to a page (currently blank) but I still need it to produce the layer with the sub menu items.

Thanks in advance.

Akarin
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #1 on: July 16, 2009, 05:45:22 PM »

You will need a workaround for this.
There is no such function in websitebaker.

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Akarin

Offline Offline

Posts: 3


« Reply #2 on: July 16, 2009, 06:33:05 PM »

Thanks for the info.  I'll write something and release it Smiley
Logged
Akarin

Offline Offline

Posts: 3


« Reply #3 on: July 16, 2009, 07:31:17 PM »

Actually if anyone wants a non-code workaround to this, then here is a clunky solution.

Just create a new Page Type of Menu Link. 
Set the Link parameter to External Link and set the url to the web root /
Make this the parent of your other pages

That's it  grin

Logged
Argos
Moderator
**
Offline Offline

Posts: 2160


WWW
« Reply #4 on: July 16, 2009, 10:24:55 PM »

Actually if anyone wants a non-code workaround to this, then here is a clunky solution.

Just create a new Page Type of Menu Link. 
Set the Link parameter to External Link and set the url to the web root /
Make this the parent of your other pages

I'm not sure if I understand you, but are you sending people to the homepage when they click on Contact now? You'd better send them to the first child instead, don't you think?

You can also split the menu in a header-type menu call with a link, and the real menu call. Like so (example from a client site: www.ksi-advies.nl):
Code:
// show the parent as non-linked header
show_menu2(1, SM2_ROOT, SM2_MAX, SM2_CRUMB|SM2_CURRTREE,'<h2>[menu_title]</h2>','','','',false,false);
// then show the menu
show_menu2(1,SM2_ROOT+1,SM2_CURR+1,SM2_TRIM|SM2_CURRTREE,'[li]<div class="bg_menu">[a][menu_title]</a></div>','</li>','[ul]','</ul>',false,false);
Clicking on the top menu generates the left menu automatically.

I'm sure you can also do some fancy showmenu2 coding with if-then constructions. See http://code.jellycan.com/show_menu2/
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!