Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template to render directory facets as dropdowns #232

Merged
merged 3 commits into from
Sep 26, 2022

Conversation

stephen-cox
Copy link
Member

@stephen-cox stephen-cox commented Sep 22, 2022

Allows directory facets to be configured as dropdowns.

Fixes #231

@stephen-cox stephen-cox changed the title Added template for rendering directory facets as a dropdown Add template to render directory facets as a dropdown Sep 22, 2022
@stephen-cox stephen-cox changed the title Add template to render directory facets as a dropdown Add template to render directory facets as dropdowns Sep 22, 2022
@Adnan-cds
Copy link
Contributor

Hi Steve,
When I switch to Dropdown for the Facet widget display, I don't see any Facet labels :(
screenshot-facet-dropdown-without-label

The label is actually there but hidden by the facets module. Don't know why.

@stephen-cox
Copy link
Member Author

When I switch to Dropdown for the Facet widget display, I don't see any Facet labels :(

I noticed this too. Not sure why the Facets module is intentionally hiding labels.

I have updated the Twig template so labels now display

Copy link
Contributor

@Adnan-cds Adnan-cds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me now. Thanks.

Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and works for me. I see the lables too.
Thanks @stephen-cox and @Adnan-cds !

@stephen-cox stephen-cox merged commit 342cd03 into 2.x Sep 26, 2022
@stephen-cox stephen-cox deleted the fix/231-dropdown-facet branch September 26, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directory facets aren't rendered when configured as a dropdown
4 participants