Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I would like to have the option to move or copy the filter label to input value or placeholder.
(Done like by the project "Compact Forms", but without fancy Javascript.)
Comment | File | Size | Author |
---|---|---|---|
#6 | better_exposed_filters-move-label-to-input-2219249-6.patch | 2.56 KB | NWOM |
#3 | bef_placeholder_brtamas_integralvision.patch | 2.38 KB | brtamas |
Comments
Comment #1
jennypanighetti CreditAttribution: jennypanighetti commentedI would like to see this as well, if it isn't already implemented.
Comment #2
Amir Simantov CreditAttribution: Amir Simantov commentedMe too me too!
Comment #3
brtamas CreditAttribution: brtamas commentedHere is a kind of solution. It can be used with Placeholder module. (https://www.drupal.org/project/placeholder)
Comment #4
mikeker CreditAttribution: mikeker commentedIssue queue cleanup... My apologies for taking so long to address this issue!
@brtamas, thank you for the patch -- especially for including token replacement in the placeholder value! Feel free to mark an issue as "need review" when you attach a patch. It helps separate issues that actually have some progress made from the flood of feature/support requests and bugs without solutions.
I like the idea of adding an option to let site builders specify placeholder text. But I don't like the idea of adding a (soft) dependency on the Placeholder module. It seems that we should be able to do this in the theme layer when rendering the filter using BEF.
(Just realized that would eliminate any filters rendered using the FormAPI instead of BEF's custom theming...)
OK, clearly I need to give this more thought.
Comment #5
mikeker CreditAttribution: mikeker as a volunteer commentedPostponing until I have time to redo/cleanup the theme layer in BEF.
Comment #6
NWOM CreditAttribution: NWOM commentedI have re-rolled and slightly modified the patch to work with the newest dev. This patch is much easier to work with than Compact Forms
Comment #7
NWOM CreditAttribution: NWOM commentedNow if only I could get the Placeholders working with the Date Popup widget.
Comment #8
NWOM CreditAttribution: NWOM commentedI'm now using Label Trash as an alternative to this patch for those interested.
Edit: Nevermind, it appears certain Exposed Filters don't work with Label Trash, whereas I can add them manually using this patch. So, for the moment, I'll use a combination of both. See: #2710003: Doesn't work with specific Views Exposed Filters
Comment #9
philsward CreditAttribution: philsward commentedHope to see this included sooner than later. I don't plan to move off Drupal 7 till well after the EoL in late 2021, so this is still a very relevant feature request.
Comment #10
NWOM CreditAttribution: NWOM commented#6 still applies cleanly against the newest dev. Setting back to Active, since it was postponed 4 years ago without any update.
Comment #11
NWOM CreditAttribution: NWOM commentedComment #12
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).
Comment #13
NWOM CreditAttribution: NWOM commentedFor a D7 fix, I suggest potentially using the Views Advanced Labels module. The only catch is that if you only want the advanced label to be shown as a placeholder, you need to clear the regular label field every time you save/alter the filter.