When you have a jump menu view there is no way to get a label for the jump selector, which is required for accessibility reasons.
It would be good to add a label setting where users could enter the label text (or leave it blank if they still do not want a label).
It would default to blank so as not to break existing sites.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | views-jump_menu_label-1507854-4.patch | 3.19 KB | mgifford |
| #1 | views-jump_menu_label-1507854-1.patch | 1.56 KB | rooby |
Comments
Comment #1
rooby commentedHere is a patch to add the option.
Comment #2
dawehnerIf we add some kind of feature to the normal jump_menu style it should be added to the summary one as well, so you have to change views_plugin_style_summary_jump_menu.
This shouldn't be hard.as well, but this
Comment #3
alimac commentedPatch worked for me, thanks. Needed it for exactly the same reason.
Comment #4
mgiffordHere's a patch with the change to views_plugin_style_summary_jump_menu(). It should be pretty identical so I just basically cut/paste it in.
Comment #5
mgiffordtagging
Comment #6
dawehnerPush to d8 to fix it there first.
Comment #7
dawehnerOh well, this part does not exist in d8 anymore, move back.
For the d8 port of the patch we should better add a test for that new functionality.
Congrats rooby for your first commit to views! Thanks! Committed and pushed.
Comment #8
dawehnerRemove the VDC tag.
Comment #9
rooby commentedThanks for the updated version mgifford.
Comment #10
mgifford#4: views-jump_menu_label-1507854-4.patch queued for re-testing.
Comment #12
wbobeirne commentedTo anyone looking for this functionality, this has been fixed on the latest dev version as of October 7th.
Comment #13
dalinIf I'm following the thread correctly, this still needs to be ported to D7.
Comment #14
mgiffordThe changes both look like they are applied to the Views module rather than ctools. Should the project be changed for this?
https://api.drupal.org/api/views/plugins!views_plugin_style_jump_menu.inc/7
https://api.drupal.org/api/views/plugins!views_plugin_style_summary_jump...
Comment #15
la558 commented@dawehner: re- your post #7
Has it ever been a solution for D8
I'm at the below folder structure, but I don't see the equivalent to 'views_plugin_style_jump_menu.inc' on D7 (modules > views > plugins)
core > modules > views > src > Plugin > views > (I checked 'style' and other directories in here)
Thanks!
Comment #16
japerryDrupal 7 is no longer supported, closing.