By modul on
Hi all,
I would like to have a menu item which acts only like a placeholder, i.e. a label, not leading to any node. The only thing it should do is open up the list of items which are underneath. For instance, it could read: "Check these", and then, upon clicking, the "text 1", "text 2" etc. labels would show.
I can't manage to get this done, because every menu item requires a path, apparently. So, is there a way around??
I'm using Drupal 5.1.
Ludo
Comments
Oops... Did I ask a tough
Oops... Did I ask a tough one?
Ludo
Hi.
I think you can use DTHL Menus module for something like that. It lets you only see a menu item content when it has no "childs". Let me show you an example.
Having this menu structure:
Main
-Sub1
--SubSub1
-Sub2
-Sub3
With this module, when you click Main it deploys the whole branch, but shows no content.
And when you click Sub1 it deploys SubSub1, but also shows no content.
You'll only see content when you click items SubSub1, Sub2 and Sub3.
I don't know if that's exacly what you're looking for.
Greetings.
Yes, Spartanbeast, thanks
Yes, Spartanbeast, thanks for your reply (I suppose you meant "DHTML Menus"), that is more or less what I was looking for. But is something like this really impossible in Drupal-out-of-the-box? Sounds so weird, that one would actually have to install a module just to have a separating line in between menu groups, or to have a non-linked menu item, as I was trying to get?? I'm quite happy with the menu as it is, but I would like to have this possibility to have something just serve as a placeholder. Any ideas, anyone?
Ludo
think harder.
If the functionality you want is DHTML, then yes, you use a module like DHTML to add it. In-page updates and expandy menus are DHTML, not HTML.
If you don't think you want DHTML, think about what you are asking for a bit harder.
If you want a 'unlinked' menu item/subtitle, then clicking on it will do nothing, and not show the sub list.
If you DO want clicking on it to show a page displaying the expanded sub-items ... what should the rest of that page look like? What would you expect the URL or bookmark to that 'page' to be?
It's an old puzzle I've had to explain as an info-architect to clients many times - you've chosen a title for a section, and you've given a bunch of pages that live within that section, but what do you want people to see when they just click on that section title??
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Thanks for your reply, DMan,
Thanks for your reply, DMan, it's people like you who make this forum into a place to be.
Still (call me stubborn, if you want :-) ), there are a couple of things which are not that obvious to me. I still don't understand why clicking on a menu item must lead to something. That's a matter of providing an option in the code, no? When I "simply" want a separation in my menu, a line (similar to what you see in your browser's menu items), i.e. a label without a link, my feeling is that this would be a small addition to the menu's module, with a lot of aesthetic or functional sense. Lists are ok, but lists with divisions are a lot easier to comprehend.
At this moment, my menu is about 20 items long. Too much, if you ask me, and it doesn't look nice. I feel I have 2 options:
- either make sub-groups of menu-items - but that would force me to indicate a path for the "clickable top item", which I don't want: I want the user to remain on the page where he is, I just want the submenu to unfold. Apparently, the only way out would be to go DHTML. Okay then, albeit with a * sigh *.
- or make divisions, lines in between groups of menu items - but if I understand you correctly, that doesn't seem to be possible: there is no such thing as a "separator" or a "line" possible. Again: *sigh*.
If I understood you correctly, this is the way it is. Well, in my opinion, an "inactive" menu element ought to be possible :-). Where is that form with the feature requests again...
Ludo
Create unlinked menu items / dividers.
In HTML, yes, a click on a link must do something. That something is visit a new location.
I understand a bit better what you are aiming for, if you will be satisfied with an inactive divider in the CMS menu builder, yes it is a reasonable request.
I tried making a menu item linking to '#' - which I'd interpret as 'current page' ... but that got escaped oddly. I think that would be the appropriate way of sneaking in this behaviour.
Feck. Why doesn't the menu allow me to put #anchors in?
Solution
OK, here you go, based on librettos solution for #anchors, plus my #null approach, pop this into your themes template.php
And you can now make unlinked divider menu items by linking them to just '#'
Lovely!
Try using them as menu sections and setting them 'always open' to get the visual effect (I think) you want.
You'll probably want to wrap a class around that last line for styling or something...
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Addition - for really simple
Addition - for really simple unlabelled hr-type dividers, Something similar could be done.
the menu item can't be null, but it could be "-"
--- in the top of that same function.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
So did that help?
I think it's a pretty tight solution, possibly worth including in my templates from now on - if not pushing into core.
... maybe just php snippets . ..
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Wrap A HREF around the output and your styling is intact
As the subject says, just wrap this around your output and your menus are working as supposed with your styling intact!
Example
That should do it for you..
Ummm... Thanks,
Ummm... Thanks, Stewartstardust, but where would I do this?? In which file?? I suppose in template.php? I'll give it a try there.
Thanks,
Ludo
Full code example
hi again,
Below is the complete example, with the last line edited to keep the styling:
Thanks for this
dman, stewartstardust, ludootje thanks much for this code. It makes my day!
yes but...
Um, yes.
That amendment does do exactly what you say.
But the point here is that we deliberately don't want these spacer entries (subtitles) or spacers to appear as links, or be clickable. :)
I think to get styling tweaks, you'd be better to give it a non-href class and style that.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
AHHHH Sorry!!!
Sorry, misunderstanding on my part..
I just assumed that it was for the drop-down version of the nice_menus.. I can see now why you would avoid A HREF on vertical menus..
But anyways.. Just to clarify it.. Once again.. the amendment is only for users who wants the drop-down version of nice_menus with styling on their "placeholders"..
Does it make sense?? :P
Pardon my Danglish(Danish+English)
/jens
Makes sense to me
Thanks dman and stewartstardust! This is just what I needed for my site which DOES use nice-menus. Even if nobody else finds it useful it does exactly what I was looking for. Thanks!
How to show the #linked menu item without the underline
This is great. Thanks for the code. It worked for me.
Now i am wondering how i can show the #linked menu item without the underline.
( I am using horizontal nice menus)
Do the same for primary/secondary links
Hi,
I needed to do the same (create unlinked menu items) but in the context of primary and secondary links. I'd like to share with you how I did it.
Primary and secondary links are themed with theme_links (http://api.drupal.org/api/function/theme_links/5) so I copied the code to a theme override in my template.php.
Then I changed the next lines:
into this:
As you can see, I check if not only the ['href'] value of $link is set, but also if it is not set to '#'. If $link['href'] equals '#', I add the class name 'menu-sub-header' to the $link['attributes']['class'] value for easier styling. Now I can add empty links by setting '#' as path.
By the way, the last elseif suggests that non-linking menu items are already a Drupal feature, but at the moment this is not true for the menu system.
Marc: Thanks for the brief
Marc:
Thanks for the brief code, I can't seem to get this code working (I even tried messing around a little), but maybe I'm using it wrong. I'm using the theme Garland, and what I'm after is placeholder top level primary links that expand to the second layer of the hierarchy if clicked:
Primary menu item A - Real path (i.e., goes to a node)
Submenu item 1
Submenu item 2
Primary menu item B - Placeholder (goes nowhere, except expands the subitems below)
Submenu item 3
Submenu item 4
I'm not a code expert, so any help to make this happen. Right now if I put the code above into the Garland theme (garland_theme_links) it just grays out the item and makes it unclickable (and kills the "triangle" for Garland above that menu item). Ideally, it would just open up the subitems as I describe above, and go nowhere else. I've seen numerous posts about NON-Primary menus, yours seems to be the only one that covers primary menus.
Thanks,
Dave
A placeholder does nothing.
A placeholder does nothing. It's just a label. That's what this exercise is about.
If you want it to be clickable, you need something else.
Like nicemenus.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
DHTML menus
Hi Dave,
As said, what you're trying to do is not what my code does. I think what you're looking for is the module DHTML menus (http://drupal.org/project/dhtml_menu). It adds javascript behaviour to your menu's to make the child items expandable/collapsible when the parent item is clicked.
Marc
Update solution for D6 theme_links function?
Hi Marc,
I know this was a while ago, but I just tried to do this in Drupal 6, but am not quite getting it. Here's what I tried to do...
Changed the code from this:
To this:
I still get the error message in Drupal 6
Any idea what I might be doing wrong?
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
http://UtopiaSchool.org
one line of code
Scott,
I'm not sure if this method works in D6 at all; I didn't try it yet. Anyway, it seems that you have missed a line in the instructions that came with my code:
In other words, you also have to change this line:
if (isset($link['href'])) {into:
if (isset($link['href']) && $link['href'] != '#') {Please let us know if this solves the problem, it would be nice to know if this method works in D6 as well.
Not quite yet
Hi Marc,
I now can't edit my post above for some reason, otherwise I'd do it... my php // comment (that includes the url) seems to be throwing off the code. I removed the offending comment...
I also added the line you recommend above, but no dice. I still get
:(
Here is the code I'm using at the end of my template.php: http://drupalbin.com/2617
However, I noticed that from D5 to D6 api there's now this addition to that function:
Which sounds like it might be intended to do something similar to your solution... doesn't it? Maybe this could be modified here instead of adding an additional elseif statement above?
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
http://UtopiaSchool.org
Probably, my code needs some
Probably, my code needs some adjustments for D6. Unfortunately I don't have time right now to look into it, but if you just take the original D6 code and try do again what I did with the D5 code, I think you should be able to figure it out.
for D6 you mirght try this
Hi,
I think there are many solutions for this problem. Since a client requested I wrote one for D6.
I added the following code to my template.php
Which replaces all links to front into placeholders. Replace front with whatever you like.
This worked for me
But it would be nice to have
as an option (from core drupal I mean)
so that does not get abused like this
------
GiorgosK
Geoland Web development / web marketing
------
GiorgosK
Web Development
I totally agree. Although
I totally agree. Although I'm not sure if it should be in core, it would be great to have a proper contributed module for this.
I could not get this
I could not get this solution to work for me. I reset the cache under performance and still nothing. To clarify, people HAVE gotten this solution to work in Drupal 6 correct?
Yes its working for me on
Yes its working for me on Drupal 6
include the code in your template.php
------
GiorgosK
Geoland Web development / web marketing
------
GiorgosK
Web Development
This is what my code looks
This is what my code looks like in my template.php. I am using nice menus (though I tried it without, and it didn't work either). I put the code in my template.php file. Do I need to add something elsewhere? Maybe there is something obvious I'm missing.
I'm still getting the frustrating "The path '' is either invalid or you do not have access to it."
<empty>?
Did you actually enter
<empty>as path, or did you leave the path field empty? I think you should do the first.Clear your cache and use
Clear your cache
and
use
<front>I don't think it can work with
<empty>(I think its an illegal parameter)
------
GiorgosK
Geoland Web development / web marketing
------
GiorgosK
Web Development
nice code. of course if a
nice code. of course if a person doesn't want the place holder to be a link AT ALL just
Note that you should check the "Expanded" option if this placeholder is to have children in the menu
Avoiding <front> in D6
If you'd like to keep <front> working normally, implement this in custom.module (or any other module you use for site-specific customization).
Then you can make your placeholder links point to <none> instead, as it's now a valid menu item. Using the page callback for this menu item, you could even add some tracking functionality so that in the unlikely event of someone landing on this page, you'll know where they came from.
Of course, you'd also need to change the hook_menu_item_link() examples to check for <none> instead of <front> as well.
Something wrong with Firefox
When at home, all my <front> links were .active, so I implemented this code and it worked nice. But now, as the placeholders links to #, they expand and collapse immediately in firefox.
Works great though should avoid using <front>
Instead of as the placeholder try a legal url such as http://example.com which already goes nowhere (sort of) and is acceptable by Drupal when creating the menu path
This way you avoid interfering with how Drupal normally uses
this is the only solution
this is the only solution that worked for me without interfering with how drupal normally works. thank you!!
This works fine with D7
This works fine for me with Drupal 7 as well.
And no problems with the breadcrumbs too.
thanks a lot
thanks buddy
@ allartk you are great, this solved my problem... thanks a ton..
Nice! Three issues...
Great! It works nicely.
I have three problems:
1)
The theme I use (az older version of Zen Classic) already has a 'function phptemplate_menu_item_link' function (in template-menus.php in the Zen root dir), and simply merging the code above either not works (if pasted after the original), or spoils the tab solution established.
This is not working:
2)
My second problem is that I would like to clear the list-style bullet, but as Drupal puts the menu item in a line, I cannot style the line with the above php...
Is it doable?
3)
Third is that if using '-' in the title of a menu item, and being located in a sub-node, breadcrumb displays the hr.
Please help me solve at least the first problem!
UPDATE: I managed to create the same effect with only using extra menu blocks and custom css.
This works for me.
I'm using Zen theme and have a sub-theme.
In my template file (in the sub-theme directory) I have added a slightly re-coded version of the function:
I put it in my sub-theme directory and call it zen_menu_item_link rather than phptemplate_menu_item_link so that it over-rides the phptemplate_menu_item_link in the root of the zen theme.
Then I use
<none>as the URL for menu items that I want to appear as text rather than a link.Then I theme class menu_placeholder appropriately.
It works perfectly. I do find I need to clear the menu cache sometimes to see the changes as I code.
Thanks JD! I will not apply
Thanks JD!
I will not apply and try your solution yet, as I'm quite content with where I arrived with extra menus with custom css.
But it is bookmarked for future reference!
Thx again.
like this approach
hi, i like this approach
i added some code and changed yours a bit to created EMPTY placeholders, empty lines that divide the menu in pieces
i use the a zen sub theme so my functions are called zen_menu_item and zen_menu_item_link
i removed the list bullet of the standard class=leaf li list item by naming it "autumn-leaf" and adding the css code:
so this goes into my template.php in sites/all/themes/zen/NAMEOFTHETEMPLATE:
Attention plz
Hi dears,
I know for new problem, we have to create the new thread,
But i posted lot of quries but no response from our group , i dont know what is reason,
So one doubt from my side,that is i am not sure am correctly creating new thread or not,
Any one plz tell how to post the new thread,
In the forum combo, which category we have to choose,
Plz Response me,
Thanks in advance
Regards
B.S.Bharani kumar
Yep, this must have been a
Yep, this must have been a very tough thing to answer, apparently... Verrrrry strange indeed: I was simply (?) asking
- how to put a line or a separator in my menu, delineating parts of my menu which belong together,
- and/or how to put an item in my menu which only serves as a "placeholder" for other things, i.e. which unfolds upon clicking to show the things on a lower level, but which does not lead to any node itself.
Is this really that difficult to accomplish (preferably without any additional module) ??
Ludo
^'Lookin to do the same type of thing, but can't figure it out..
basically, i have a menu with the following items: "home", "site map", and "content" , displayed horizontally.
I would like them to appear like this: "home | site map | content"
, with "|" spacers in between... how can i do this?
My thoughts exactly...you'd
My thoughts exactly...you'd think this would have been a rather common scenario. Odd that you'd have to insert custom code into your template to make it work. Maybe in v. 6 there will be some a "beginner method" for menu creation...? And some sort of menu building improvement to make menus without needing to know that you have to type in "?q=node/..."?
This CMS is excellent---just needs another couple stages of refinement on the simplicity front to make it less intimidating to the new user. I couldn't believe my eyes when the tutorial, which had taken me relatively easily through the beginning steps of setting up a site, arrived at the menu-building stage and basically dumped you with a sort of "sorry buster, this one's just plain obscure--good luck".
Hi! I'm having a similar
Hi! I'm having a similar probnlema but I still don't want to add a false link dinving. My objective is put labels like header(h2) 'cause I want they themed just like the name of the menu above.
For figuring out what I want just put the Who's Online block available on any sidebar.
When you look at the first label "who's online" you see that is an h2 type
and the label Online users below are h1 or h2 I think.
I tried use two menus (two blocks) and place right below but I'm having a problem with IE6 that the first block (I tested with primary links on the right sidebar) in 800 x600 resolution gets a freaking width with a lower value than the others.
In firefox they got the same width and runs very well.
Regards,
Thiago Manhães
Hear, hear for this tool!
If I can chime in, when I look at Drupal out of the box, I see in the navigation menu several items that serve as both top-level menus *and* as links to pages containing more explanation about those menu items:
i.e. if I click "create content" the menu expands to show links for the various content items available, and the linked page offers a list of those same items with more explanatory detail on what those items are.
This is a format that appears frequently in the default navigation menu and, I think, logically there should be a relatively easy way to create something similar for added menu items. In fact, this seems so obvious that I was assuming it could be done easily and I had just not yet figured out how.
The solutions offered here seem too complex. Isn't there a way to do this in core?
I guess the key here is figuring out how it is that the nodes linked to "create content" or "admin" seem to be automatically updated whenever a new menu item is placed within those menus. That's the kind of thing I would like to be able to create within my existing menus. Any tips on how to do this?
Confused here too about sub-menus of menus
I just need a Menu title PROJECTS
with clients in the submenu like NBC and ABC for instance
Then I use views to add menu items under NBC or ABC
I then have a CONTENT TYPE for submitting an NBC and ABC report
Then I use VIEWS to add doucments NBC or ABC submenus
But I have to give menu PROJECTS some kind of node/path for it to show up. Of couse node/add would not work and does not work.
This is a vertical right side bar menu that I just want to expand downward to show submenus...
How to create a Menu item which is just a placeholder?
I haven't read all the replies so this may be duplicating but usually putting a hash # in the URL field should do the trick.
typical drupal answer to a common, simple feature: hack it in!
having a placeholder menu item is a common need. yet in drupal, this requires a custom hack in php. that's the essence of drupal in a nutshell: a powerful system that overlooks the obvious, like the bumbling professor who can't remember where his glasses are.
using a "hash" (#) in the "path" field of a menu item does not work in drupal 6.0. neither does javascript:void(0). neither does inserting
<none>, which was a theme tip from drupal 5.x! you'd think this would be a 1.0 feature, not a hack mentioned for 5.0, that's still not integrated into 6.0.it's dumbfounding and frustrating. i'm sure i could hack something to work, and then when upgrades overwrite it, role the hack in again. brilliant.
I totally agree
isn't there a way to do this, anyone ?
im using drupal 6, would be soooo helpful if someone new now to make a placeholder menu item
Subscribing, greetings,
Subscribing, greetings, Martijn
I agree #3
I agree with Eric and whoever he agreed with....how can Drupal make something that can be easily done with css/html so difficult. Is there no solution to this problem for Drupal 6.x? Submenutree (referenced as a solution below) does not appear to be Drupal 6.x ready.
That would be really
That would be really helpful, indeed.
Submenutree ready?
Hope I'm not giving false hope, but based on the issue queue, it seems Submenutree 6.x-1.3 is ready and resolves this issue. I'm testing now to check it out
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
http://UtopiaSchool.org
Submenu, but still no # allowed. Any suggestions?
Yep – submenutree works really well :) and is pretty fantastic actually...
BUT... it doesn't help with the placeholder menu items (menu items which are not links themselves). Unlike some of the requests on this page, I don't want to have these placeholders expand (because dhtml_menu works wonders for that). But I want to keep the menu items expanded always (which I can do using core menu), but I just want the menu items to not be links themselves (using one of the # solutions above)
However, I can not seem to sort out how the theme menu override offered for D5 could translate to D6 because of api changes - see my comment above .
If any of y'all could help who are more familiar with the overriding the api than I am, you'd have at least +1 more fan out there :)
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
Scott Rigby
http://basekamp.com
http://PlausibleArtworlds.org
http://UtopiaSchool.org
Submenutree Module
I've used submenutree for this purpose on my site. It will create a list of the menu items that are the direct children of the menu item you are at, and you can create a title for this list that could say "check these" or what have you. You can take this list and title, and either put it in the main content of that node that is the parent item, or put it in a block.
Of course, I create this parent item as a node, but its only contents are the list of its direct children from the menu system. I always leave the menu breadcrumb in place so that people can navigate up the directory if they choose to and that makes it very usable.
I even convinced the module maintainer to allow us to use the same system for sibling items, which would be a sister item to the current node, which would create a list of all siblings in a separate block. This is very useful for navigation.
Check it out because it is a high quality module, it has great code.
Sounds handy. Sorta like
Sounds handy.
Sorta like splitmenu (I think) does ... but more versatile
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Definitely
And I now realize that I didn't really point out just how versatile it is. Submenutree lets you configure both the title of this list of menu items and whether it is displayed in content or as a block PER EACH NODE that it will show up on. The flexibility of such a thing is amazing since you don't have to have a generalized title that applies to every list, but a specific title for each list, and you can put that list wherever you want it to be on each node.
I'm starting to think of new ways this functionality can be extended since I really think this module has some seriously untapped potential.
But no page?
But to answer the original question, possible to use this menu module to have a menu link with *no* link to a page. Just expands/collapses the menu?
DHTML menus
You can do that with the DHTML menu module, http://drupal.org/project/dhtml_menu
What a strange feeling...
What a strange feeling... About 1 year and 3 months ago, I asked the question which started this thread: how to make a menu item without having to link it to some path, i.e. I wanted a menu item which, upon clicking, would either do nothing (in which case the menu item would just be a placeholder, a division like a horizontal line or so), or which would open up underlying menu items (in which case the menu item would just be active in the menu itself). I knew there were modules which would take care of this (such as DHTML Menus), but my whole point was why on earth something simple (and essential...) like a dividing line was so hard to accomplish in Drupal itself, without having to use a whole module just for a simple dividing line.
Many many replies were formulated. And today, one year and three months after this thread was born, there is the same reply again: use DHTML Menu :-) :-) :-) :-) Come on guys, a whole module just for one measly line??? Nah.
If all you need is a
If all you need is a divider, this thread has documented some good ways to do it. I think we have proven that you do not need a whole module for it.
If you're looking for expand/collapse behaviour, well scripted, with graceful degradation, cookies to save the state and more nifty features... IMHO, DHTML_menu is well worth it's KB's.
A Fable
I have a client with an extremely simple request - they want to be able to drag an image out of their desktop photoshop application and place it into a spot on a page in the CMS.
Obvious. Simple. Essential.
Why on earth could that be difficult?
If they are an intelligent client, they'll understand me if I say that's actually trickier than it looks, and learn about the work-around that takes three steps instead of one. Because they actually want to get a result.
Or ... they could refuse to listen to the alternatives and declare that it's simple and obvious, and it's my fault for not just doing what they want.
.dan.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
The carrot is out of the
The carrot is out of the bag...
http://drupal.org/node/344771
subscribe
subscribe
Simple solution for DHTM
Simple solution for DHTM menu, delete from dhtml_menu.js ..
I too am a new comer, learned how to use taxonomy to create categories and then thougt it was strange that a menu item must have an URL. It's very strange in website design for a menu item to expand and link at the same time, logic dictates it's not necessary because the sub menu items describe the category. Usually it's either a single link to a page or an expanding menu item, unusual to have both at the same time however I can see uses for it for example more detailed description of a catergory or alternate (more attractive) means of decription.
Check this
Check this out
http://drupal.org/project/special_menu_items
it promises to give such a solution
placeholder
and
nolink
items for menus
------
GiorgosK
Web Development
how to create expandable menus
hey guys , i am confused regarding the expandable menus.
I want to create menu that will show only Class names and when a particular class is clicked, all the sub headings should appear and on further clicking the subheadings it will take us to a different page . all sub menus should get open on the same page. Please help me how should I proceed and where should I incorporate the code ?
Please guys help me.... I am new to Drupal and deadline to submit my project is quite close.
Any kind of help shall be appreciated.
Thanks
Simple answer: use
Simple answer: use http://drupal.org/project/dhtml_menu
Thanks buddy, I implemented
Thanks buddy,
I implemented it and it is working great. Thanks for replying .Now it seems that the project can be completed on time .
I have one more problem. Rather than embedding my video as an attachment on a page type ,i want the video to play directly when the menu link is clicked. How it can be done in drupal ?
Please reply as soon a possible.
Smrati
Please keep forum threads on
Please keep forum threads on topic. This is a completely different subject, I suggest that you open a new thread for this if you can't find the answer by searching (ie. http://drupalmodules.com/search/node/video+category%3A24).
A new module
A new module:
http://drupal.org/project/menu_firstchild
That's funny, I just posted a
That's funny, I just posted a patch implementing exactly the same functionality in Special menu items module. See http://drupal.org/node/515736.
Funny indeed, the very same
Funny indeed, the very same day! :-)
Old thread still current?
Is there a settled and new method for achieving this which makes all the hacks in this thread redundant?
read the thread - more than
read the thread - more than one solutions exist already
------
GiorgosK
Web Development
I'm not seeing it
Thanks for the prompt. I may well be missing it, but I just don't see the answer to the original problem.
So, unless I've missed something, perhaps the next step would be to make DHTML Menu apply only to those Parent Menu Items marked with the path designator <none> (using TwoD's technique).
I've missed something basic.
I missed something very basic. DHTML Menu is configurable under site configuration. That solves everything.
For others in my position (that have yet to come) I'll shortly do a full post that explicitly goes through all the steps to solve the original problem.
I actually am in your
I actually am in your position, so I'm interested in how you solved this problem. I have:
If I use Special Menu Items to create the level 1/2 parent menu items, the parents are not clickable/expandable in DHTML Menu and I can't access level 3/4 at all. If I use Menu FirstChild to create the level 1/2/3 parents, the link for level 3 actually displays as
<firstchild>, the active trail is broken, and functionality breaks (clicking goes toexample.com/<firstchild>instead of expanding). Am I missing something? TIAYou have to choose between
You have to choose between Special Menu Items and Menu Firstchild:
if you choose Menu Firstchild, you have to use it for level 1 and level 2 too:
Doesn't work. If I set all
Doesn't work. If I set all three parents to
<firstchild>, the link for level 3 actually displays asexample.com/<firstchild>, the active trail is broken, and functionality breaks (clicking goes toexample.com/<firstchild>instead of expanding).Try to disable Special Menu Items
Have you disabled/uninstalled Special Menu Items?
Disabled and uninstalled SMI.
Disabled and uninstalled SMI. Still happens. I can now be more specific as to when the bug occurs, though. If it's a third level link that is not a descendant of the last first level link and it is not the last child of its level2 parent, it breaks.
The links marked with asterisks go to
example.com/<firstchild>instead of the actual first child's node link. WTF, right?Please open an issue in Menu
Please open an issue in Menu Firstchild about this.
Drupal 6 - Create unlinked menu items / dividers.
By Dan Morrison | http://coders.co.nz/
Menu item as a placeholder only
I know this problem well and have sought a simple solution on many occasions. Like others I have usually resorted to the DHTML module but it doesn't really provide a good solution for the issue raised. As I was reading through the many replies I suddenly thought, why not simply use the 'add menu' capability to add a new menu block for each cluster of nav links you require?? Each new menu block can be named appropriately. OK, maybe not tres elegant but I think that might just do the trick!
Gotta dash and go try it out!!
Regards to all,
Trevor Ulyatt
www.nzwebdesigners.com
use this module
http://drupal.org/project/special_menu_items
special_menu_items is buggy
YMMV with this module: http://drupal.org/node/507758
Perfect Solution
Hi,
put the below line in path & put your desire title
http://#
Thanks,
Amit Garg
amit@highpixel.in
http://highpixel.in
Works for me! -- Well, Almost
This solved my placeholder issue. So simple! Thank you!
Update: this only works in Chrome. Firefox, IE9 and Safari still give an invalid path error. Any help would be greatly appreciated!
Special Menu Items
It has been mentioned before in this thread, but did you try the Special Menu Items module?
Solution
My solution was to switch to using a Suckerfish menu and adding Special Menu Items. In the Special Menu Items module configuration I changed the html tag for "nolink" to < a href ="#"> (without spaces) and that took care of the tabbed styling problem that the default < span > gives. Now I have a nice drop down menu with children and the parent tabs are placeholders.
Make it into 8.x core?
Issue:
#1543750: Allow menu items without path
Smart - thanks ...
@tammi.allen from http://drupal.org/node/128618#comment-6072344
Smart - thank you ...
cool
I support a non-profit website (Drupal 7). They have been asking for non-clickable menu items for several years. The module special_menu_items is the perfect solution.