Welcome, Guest. Please login or register.
Did you miss your activation email?
March 18, 2010, 08:21:14 AM

Login with username, password and session length
Search:     Advanced search
Please Read - How to Get Help!

Participate in the forum and earn Great Rewards!
52057 Posts in 14862 Topics by 127576 Members
Latest Member: xcvxcv
* Home Help Login Register
+  Joomlashack Customization Forum
|-+  Joomlashack Shack Packs
| |-+  Joomla for Schools
| | |-+  [SOLVED]Joomla Mainmenu item WITHOUT link?
« previous next »
Pages: [1] Print
Author Topic: [SOLVED]Joomla Mainmenu item WITHOUT link?  (Read 14502 times)
leunac
Jr. Member
**
Offline Offline

Posts: 2


« on: February 15, 2008, 04:49:25 PM »

I've successfully installed the drop-down menu at the top of my Education page and all the components of the main-menu are published there.  If I click on a tab, a page opens in the website or in a new window depending on my settings.  If I leave my mouse on the tab, the drop down menu appears.

http://montreal.jetaa.ca

Now, I'd like to create a tab called "Links" and have the drop down menu, but I don't want the tab itself to lead to a page.  I just want the tab and the drop-down that goes with it.  In the main-menu "new item, there is no such option.

How can I do it?

Fred
« Last Edit: July 12, 2008, 07:26:46 PM by m2d^ » Logged
m2d^
Hero Member
*****
Offline Offline

Posts: 1264


Francis Doody


WWW
« Reply #1 on: February 15, 2008, 07:12:46 PM »

Quote
READ POSTS BELLOW, SOLUTION FOR MENU ITEM NON CLICKABLE.
hello, youve got 2 easy shots, not sure they will work, but u can try:
1
create a new item and making it a separator / placeholder and add the subs to it
2
create a link / url and add # as a link then add the subs

if this doesnt work, there is coding that can do that. i could give a look and see if its simple or not.

regards, good luck with your trys Smiley
« Last Edit: July 12, 2008, 07:28:29 PM by m2d^ » Logged

[Provide LINK if your requesting HELP] [Knowledgebase][SEARCH]
leunac
Jr. Member
**
Offline Offline

Posts: 2


« Reply #2 on: February 16, 2008, 02:21:20 PM »

Hi, thanks for your help!

1) When I create the separator/placeholder, there is a lower case text instead of a tab that appears in the top menu.  I can link content to it without problem, but esthetically speaking it's not really nice.

2) I've created an URL link with the tab and added the # as link.  When I click on the tab, it brings me back to the front page.  I guess it's a good solution for now, but that's not what I was looking for.

If you can still point me towards how to remove the link of a tab and just have it there as a section title, I would appreciate that.  If not, I'll just have to leave it the way it is and move on.

Thanks again,

Fred
Logged
SunDogsCI
Jr. Member
**
Offline Offline

Posts: 5


« Reply #3 on: March 27, 2008, 03:00:18 PM »

Fred:
I am tring to do exactly the same thing, and I see from your site that you just went ahead with the halfways solution you got. Better than nothing...

But what's frustrating me is that the Joomla! Administrator site works exactly like you (and I) want: the top menus (Site, Menus, Content etc.) all present drop down menus, but the "top" menus themselves don't link to anything.

There must be an answer! I will let you know if I get anything more than you did.


Nigel

FYI, my post on this is called"No links under main menu items?"

Logged
m2d^
Hero Member
*****
Offline Offline

Posts: 1264


Francis Doody


WWW
« Reply #4 on: March 30, 2008, 07:29:57 PM »

i think its 2day the day i finaly solve this post. and the issue of extend menu dropdown with no linkage...

so, let try this, u wanna have the 1st level of your dropdown menu without any  linkage?  just a button that they roll over and does nothing else but show the lower menu that should (tested on ie7 & ff) dropdown!

create a new item on joomla backoffice and making it a separator / placeholder then add subitem to it.
education template:
add this to template_css.css file that u will find in /templates/js_education/css/
Quote
span.mainlevel {
float: none;
line-height: 33px;
padding-left:10px;
padding-right:10px;
cursor:pointer;
color:white;
display:block;
font: "Tahoma";
font-size:14px;
}

let me know if this works!

(it may brake anything else on the site template that uses span with <span class="mainlevel">
if u have your left menus on flatlist it will be ok! )
« Last Edit: May 11, 2008, 05:51:39 PM by m2d^ » Logged

[Provide LINK if your requesting HELP] [Knowledgebase][SEARCH]
m2d^
Hero Member
*****
Offline Offline

Posts: 1264


Francis Doody


WWW
« Reply #5 on: May 11, 2008, 05:51:05 PM »

can someone test this and let me know if it works?..

create a menu item that is a seperator /place holder and add the css..
Logged

[Provide LINK if your requesting HELP] [Knowledgebase][SEARCH]
unreal4u
Jr. Member
**
Offline Offline

Posts: 1


« Reply #6 on: July 09, 2008, 11:11:34 PM »

sorry for the up... but it works perfectly Cheesy

The only "but" is that if you associate a style (S1-S2-S3) you must do something like this:

Code:
span.mainlevelS1 {
float: none;
line-height: 33px;
padding-left:10px;
padding-right:10px;
cursor:pointer;
color:white;
display:block;
font: "Tahoma";
font-size:14px;
}

OR

span.mainlevelS2 {
float: none;
line-height: 33px;
padding-left:10px;
padding-right:10px;
cursor:pointer;
color:white;
display:block;
font: "Tahoma";
font-size:14px;
}

etc...

Thanks a lot !! It was just what i was looking for Cheesy

Greetings Wink
Logged
m2d^
Hero Member
*****
Offline Offline

Posts: 1264


Francis Doody


WWW
« Reply #7 on: July 12, 2008, 07:25:56 PM »

finally, someone confirms it works. 

Glad it does the trick. seems like the perfect solution for an joomla direct access to second level Cheesy
 (without javascripting)

Cheesy css does it all.
regards !
Logged

[Provide LINK if your requesting HELP] [Knowledgebase][SEARCH]
japtwo
Jr. Member
**
Offline Offline

Posts: 1


« Reply #8 on: August 29, 2008, 09:21:57 PM »

Follow this http://www.joomlashack.com/community/index.php?topic=7255.0 and you will find more idea that suit to your menu or extended menu
Logged
m2d^
Hero Member
*****
Offline Offline

Posts: 1264


Francis Doody


WWW
« Reply #9 on: September 30, 2008, 11:16:44 AM »

yes, but as its said on that topic:
Quote
have used this method for my site and can confirm it works perfectly, even if the user clicks the menu item they just reload the current page they are viewing... clean and simple solution!

even if the user clicks the menu item they just reload the current page they are viewing
with this method-> its not clickable with my method Smiley
Logged

[Provide LINK if your requesting HELP] [Knowledgebase][SEARCH]
baijianpeng
Jr. Member
**
Offline Offline

Posts: 1


WWW
« Reply #10 on: June 29, 2009, 10:01:12 PM »

hello, youve got 2 easy shots, not sure they will work, but u can try:
1
create a new item and making it a separator / placeholder and add the subs to it
2
create a link / url and add # as a link then add the subs


If you have Artio JoomSEF installed and enabled, both methods will fail.

I prefer the second one since it needs NO CSS tweaks.

Today I had tested the # link trick with sh404SEF on, it worked well.

However, I still think this is not easy enough. Maybe one day the Joomla Core can add a new feature to allow us set up a non-clickable root level menu item easier.

Thanks.
Logged

http://www.joomlagate.com

Chinese Joomla Users' Portal
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
 

About Joomlashack | Privacy Policy | Terms of Service | Powered by Joomla | Affiliates | Contact Us

Joomlashack designs free and commercial Joomla Templates and Joomla Websites
Learn how to Joomla with our Joomla Tutorials or join our Joomla Template Club
Copyright 2005-2009 Joomlashack. All rights reserved unless otherwise stated.
The Joomla! name is used under a limited license from Open Source Matters.