Drop-Down Menu for Frequently used Databases

Hello,

We're working on implementing a drupal library website at library.wheaton.edu and need to create a drop-down box like the Research by Subject link at http://library.queensu.ca/

Does anybody have any code that would do this for us?

Groups:
Login to post comments

Jump Module

effulgentsia's picture
effulgentsia - Thu, 2009-07-23 22:58

External Database links

mcagney-gdo - Fri, 2009-07-24 14:39

Thanks! Can the jump module produce a drop-down list for external links to databases such as ERIC and Firstsearch?

Mary Carrington
Wheaton College


If you want to use the jump

highermath's picture
highermath - Fri, 2009-07-24 16:45

If you want to use the jump module, you need to create nodes for your external links and something like http://drupal.org/project/cck_redirection to make them work.

If it changes often, use Jump and Views to generate the list and subject page, respectively, otherwise, just code this form by hand.


Jump works with external links

effulgentsia's picture
effulgentsia - Wed, 2009-07-29 02:15

The Jump module does work with external links. The module provides blocks for menus as well as vocabularies. So, you can create a menu (admin/build/menu), and add menu items to it, and the path of a menu item can be set to a full external url (starting with http://). The url can have a "?" as part of it, so it works with urls that need to include query parameters. However, the url is limited to 255 characters, so without some hacking, it won't work if you're trying to link to external database pages that take many long parameters. Once you've created the menu and added items to it, the jump module automatically creates a block that you can enable on the admin/build/block page.

Two potential issues you might have with this approach are:

1) You want someone to be able to enter these links without you needing to give that person administration permission to all of your menus. This can be solved by the Delegate Menu Administration module.

2) You want to add the jump menu block somewhere other than where blocks can traditionally go (i.e., left sidebar, right sidebar). There are several solutions to this problem. The panels module is the swiss army knife of layout control. For the more simple case of just wanting to place a block into a CCK field, there's the Block Reference module.

To handle the use-case of just wanting a simple CCK field where you can enter links, without needing to worry about creating menus and enabling blocks, I just posted the Link Jump module. This lets you style a multi-valued CCK link field as a drop-down with a GO button.

I hope this helps. Please reply if I misunderstood your use-case.


Link Jump looks awesome!

bonobo's picture
bonobo - Fri, 2009-10-09 21:17

I just saw this now --

We are currently doing some development/updates on the Jump module; I'll flag this so we can make sure that all things play well together.

Cheers,

Bill

FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education


Best way to add to multiple pages

aimutch - Fri, 2009-10-09 18:12

I have about a dozen pages that I want to have a dropdown menu of about 30 database links appear at the top of the content area. On my prior non-Drupal site, I created a dropdown list and used Javascript to take the user to the select URL. But I can't find an easy way to add this into individual pages. I would prefer not to add it as a block although that might end up being easier than some of the alternatives. I did try Link Jump, which is nice, but required me to enter all of the individual databases on every page that I wanted it to appear. That's not feasible. Any suggestions on the best way to accomplish what I want to do?


Why is it that you would you

highermath's picture
highermath - Fri, 2009-10-09 18:33

Why is it that you would you prefer not to add it as a block? This would certainly be the simplest method.

If the issue is position, you might need to add an appropriate content area for it in your theme.

BTW, don't be afraid to start a new thread when you have a question.


I wasn't think I would be

aimutch - Fri, 2009-10-09 18:47

I wasn't think I would be able to position it the way I wanted in a block. But the theme I'm using did have a block that works and I'm going to go that route. On my old static HTML site, I added the dropdown via an include so it was easy to update when I added or removed a DB. The block lets me do the same thing. You can see how it looks here:

http://waterford.lib.mi.us/content/books-literature

I'll need to adjust my CSS to handle the block title. The "Go" button placement is a problem with how TinyTinyMCE handles form inputs that I still need to work out.