Closed (fixed)
Project:
Better Jump Menus
Version:
7.x-1.3
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2012 at 14:28 UTC
Updated:
17 Apr 2012 at 17:43 UTC
In a situation where there might be multiple jump menus on a single 'page' it might be nice to swap out the -select destination- as the default state for the menu title. This way it will condense the UI and also give the end user granular control over this by just being able to edit the block title.
A screenshot that demos the issue (not that anyone would have all of these enabled at the same time-just for demo purposes)

| Comment | File | Size | Author |
|---|---|---|---|
| Picture 2.png | 22.58 KB | pixelsweatshop |
Comments
Comment #1
doublejosh commentedPerfect clean solution.
I was going to wait until I created an admin UI to deal with this issue, but this is a perfect stopgap.
Comment #2
doublejosh commentedComment #3
doublejosh commentedCommitted: 5c80c65b08c52ef3e0f794655f59dfb7bda1ab61
Found it a bit odd as the first item now looks in line with the rest of the menu.
But using the menu name makes it "configurable" via the menu UI prior to me creating a separate option field.
Comment #4
doublejosh commentedComment #5
pixelsweatshop commentedJust tested. It appears to use the menu title, but not the block title. Therefore changing the block title in the block's settings does not change the default.
Comment #6
doublejosh commentedAhh, nice. Didn't realize that was the goal. Way better!!
Fiddled around, but that info isn't present in hook_block_view(), have to wait until hook_block_view_alter() so it throws off the rendering.
Will take more effort.
This might be worth a new release with the other changes.
Comment #7
doublejosh commentedCommitted e6a5d7ce88f49a4f4d11ba3f1fa18b98a2974e1f
Comment #8
doublejosh commentedComment #9
doublejosh commentedThere's a problem with this.
If you set the block name, it will insert into the select list. However that point you'll want to set the block title to ... which gets you a nice catch 22.
Looks like I'll have to actually add a "Choose" field to the block settings.
This will have to be part of the Admin UI.
Unless you have another idea.
Comment #10
doublejosh commentedOk, decided to go ahead and strip the title off the block and use it if it's set.
Can change this when the full admin UI is solidified and added.
Comment #11
doublejosh commentedCommited 67ef7b4e5133fa0fde8f01fd3f4cc8441e255512
Comment #12
pixelsweatshop commentedWorks great. This is a nice little feature until the UI is completed. The only issue I see is if the user sets the block title to
<none>, the jump menu displaysas the top level. No biggie really, as one wouldn't/shouldn't really do that when using this module. When the admin UI is complete, this will be moot.Comment #13
doublejosh commentedQuick fix anyway. ddd8cf326bb0caad60fbf2c9ac8575f1f3853e34
Comment #14
doublejosh commented