- Issue created by @monaw
- πΊπΈUnited States crutch
We are still using 6.0.x-dev at the moment. After an update, we are experiencing similar but only for date exposed filter that had "Make filter options collapsible" checked. The date field was collapsible within the secondary option. When unchecking "Make filter options collapsible" the date field then falls back under secondary option but it can't be collapsible.
- πΊπΈUnited States smustgrave
So don't have much time to actively work on this module but will happily review any suggestions.
- Status changed to Postponed: needs info
16 days ago 8:11pm 9 June 2024 - πΊπΈUnited States smustgrave
So tried replicating on a fresh install on 7.0.x and Drupal 10.3.x
Using the test module provided to check
In the view checked Enable secondary exposed form options
Then enabled a date field and taxonomy field to be secondary options
They appear fine.Tested collapsible feature on another field and that rendered fine too.
Can you provide additional details.,
- πΊπΈUnited States crutch
Thank you we will try to move from 6.0.x-dev to 7.0.x this week which sounds like it will fix this issue.
- πΊπΈUnited States smustgrave
Just make sure to read the release notes. Really only difference is jquery modules are removed so if youβre using them youβll have to include in your composer file.
- πΊπΈUnited States crutch
Hi, I tried 7.0.x-dev in development. Getting the same result.
We do have another View with a date exposed filter where no filters are secondary. If it is collapsible, the date filter is the first filter even though it is ordered to be the last.
When editing the View filters, it is last. When editing BEF in the View, it is last. But for the visitor it displays first. We are using Layout Builder and Claro for these displays, Drupal 10.2.6.
Unchecking collapsible puts it back in the right spot. This seems to be an issue with the date field or it maybe being a composite field.
- πΊπΈUnited States npcoder
I updated Drupal core to 10.2.6 with contributed modules as well. I figured out that the Better Exposed Filters module caused the problem - Secondary option displays.
I reverted to 6.0.3, which works as before.
- πΊπΈUnited States smustgrave
I'm still not able to replicate on 7.0.x. can the steps be written out vs in screenshots please.
- πΊπΈUnited States crutch
I'll try and help with an example. Let me know if needing something different.
This is for reporting Metrics which are displayed with the Claro theme. Claro is the admin theme, but we are using the Theme Switcher module to also use Claro for metrics displays.
There are more taxonomy fields but they are excluded in the example below.
Content Types
- Course - the base course information (body), some other long text fields, image, etc.
- Course Schedule - a time based event containing fields for schedule (date), participants (integer), select Course (entity reference), etc.Format: Table
Header: Global results summary
Relationships: field_select_content (reverse)
Use aggregation: No
Caching: Time-based:12 hours/12 hoursFields:
- Content: Title (Course)
- (field_select_content) Content: Title (Schedule)
- (field_select_content) Content: Actual (Participants)
- (field_select_content) Content: College Affiliation (College Affiliation)
- (field_select_content) Content: Schedule (Class Schedule)Filter criteria:
- Content: Content type (= Course)
- Content: Title (exposed)
- (field_select_content) Content: College Affiliation (field_college_affiliation) (ef) (exposed)
- (field_select_content) Content: Schedule (exposed)
- (field_select_content) Content: Schedule:delta (= 0)
- (field_select_content) Content: Instructor(s):delta (= 0)Exposed form:
type: bef
options:
submit_button: Apply
reset_button: true
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required: 'Select any filter and click on Apply to see results'
text_input_required_format: basic_html
bef:
general:
autosubmit: false
autosubmit_exclude_textfield: false
autosubmit_textfield_delay: 500
autosubmit_hide: false
input_required: false
allow_secondary: true
secondary_label: Filters
secondary_open: false
reset_button_always_show: false
filter:
title:
plugin_id: default
advanced:
placeholder_text: ''
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: true
field_schedule_value:
plugin_id: bef_datepicker
advanced:
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: true
field_college_affiliation_target_id_entityreference_filter:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: '- Any -|All'
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: trueI used config sync to export the BEF settings. When looking at that it seems that "Schedule" is ordered before "College Affiliation" which isn't the order of the exposed filters, but that may not have any bearing. When editing BEF settings the order is correct.