i would like to set the first default dropdown-item manually. like a title of what to choose.
thank you,
nils
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | dropdown.jpg | 8.19 KB | olegnaumov |
i would like to set the first default dropdown-item manually. like a title of what to choose.
thank you,
nils
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | dropdown.jpg | 8.19 KB | olegnaumov |
Comments
Comment #1
olegnaumov commentedyeah, me too..
maybe it can be done with some php snippet?
Comment #2
marcp commentedYou can do this now, if you call the jump_quickly() function from a PHP snippet like this (for taxonomy):
Substitute
jump_menu_get_menu_options()forjump_menu_get_taxo_items()if you want to do this for a menu.And, you can always do this with a custom options array that's passed in to
jump_quickly(). The only minor hitch is that the user can hit the OK button when the initial item is selected, in which case they'll get sent to the path you put in there (in the example above the path is the site's home page).Comment #3
olegnaumov commentedmarpc, I get this error:
Fatal error: Call to undefined function jump_menu_get_taxo_items() in …\includes\common.inc(1473) : eval()'d code on line 4I'm using Drupal 5.17, any thoughts?
Comment #4
marcp commentedAre you calling that function from a block? If so -- can you confirm that the Jump module is activated at admin/build/modules?
Comment #5
olegnaumov commentedYes!
Of course! :)
I have two blocks and they are perfectly working...
Changing “Version” to 5.x-1.1
Comment #6
marcp commented@olegnaumov - so, i can't tell, are you still having a problem?
Comment #7
olegnaumov commentedmarcp,
Yes, i have. My last post is confusing, sorry.. What I meant is that module is installed, everything works fine. But when I try to use a new block which contains the code you provided (http://drupal.org/node/298588#comment-1551984) — I get fatal error: Call to undefined function jump_menu_get_taxo_items()
Comment #8
marcp commentedWhat happens if you leave out the line that calls jump_menu_get_taxo_items()? Do you get a short jump menu in your block?
Comment #9
olegnaumov commentedYes! I get short jump menu.
Comment #10
olegnaumov commentedOk, I guess I figured it out, it works for me!
Here is the code:
Where «12» is a vocabulary ID.
Thanks!