When using the summary jump menu, I thought it might be more intuitive to show the user which argument is selected before they go to select a different argument value. I found a way of doing this that seems to be pretty effective and I'm going to attach this as a patch once I file this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | views-867636-4.patch | 1.92 KB | chromix |
| #5 | views-867636-2.patch | 1.75 KB | dawehner |
| #4 | views-867636-2.patch | 1.88 KB | chromix |
| #1 | views-867636.patch | 1.28 KB | chromix |
Comments
Comment #1
chromix commentedHere's the patch.
Comment #2
chromix commentedchanging status to 'needs review.'
Comment #3
merlinofchaos commentedThis needs to be optional. It would change behavior in a way that might not work well for sites relying on the existing behavior.
Comment #4
chromix commentedGood call sir! This patch makes the feature optional.
Comment #5
dawehner$default_value is not always set. This will throw erros on d7.
Here is a new patch
Comment #6
chromix commentedThanks dereine. After doing some more testing I realized the default "- Choose -" option would never appear, so I fixed that error by checking a different variable. This patch seems to work pretty flawlessly, though.
Comment #7
dawehnerLooks better now, but i want to test it first.
Comment #8
dawehnerIs it just me that this cannot work logically: If there is a argument => the summary is not displayed => the jump menu is not displayed.
Is this just to much logical thinking, but i does not work here.
Comment #9
merlinofchaos commenteddereine: If you have the summary in a block or something it will have no arguments. You could also have it as an attachment, like the glossary view done as a select widget.
Comment #10
chromix commentedmerlinofchaos: that's exactly how I'm using the jump menu (i.e. as an attachment). By using the jump menu in this way, it ends up functioning more like an exposed filter, which is exactly what I wanted.
Comment #11
dboulet commentedThat's how I expected the dropdown menu to work as well—having "-Choose-" displayed after you've selected an option seems counter-intuitive.
Comment #12
merlinofchaos commentedI extended this to work with both the main jump menu style, plus the jump menu summary like this one. This is a nice feature. Committed to all branches.