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

Extend queryCollectionSearchSections response object with another fields, f.e. icon, etc. #3142

Open
MrVladis1av opened this issue Feb 17, 2025 · 0 comments · May be fixed by #3178
Open

Extend queryCollectionSearchSections response object with another fields, f.e. icon, etc. #3142

MrVladis1av opened this issue Feb 17, 2025 · 0 comments · May be fixed by #3178
Labels
enhancement New feature or request

Comments

@MrVladis1av
Copy link

MrVladis1av commented Feb 17, 2025

Is your feature request related to a problem? Please describe

In v2 i had a search functionality which has shown search results with icons. Now, as far as queryCollectionSearchSections response contains only id, title, titles, content, level, it's not possible to reach the same with queryCollectionSearchSections as a proposed tool for search.

Describe the solution you'd like

Would be great to extend the desired response object as it's in queryCollectionNavigation with fields prop for example.

Describe alternatives you've considered

It seems that it's possible to do query collection and manually match queried collection with search results and show icons but it sound as a big overhead

Additional context

With current implementation of the queryCollectionSearchSections, there's no possibility to reach such functionality as it's on the screenshot, where search results can show icons assigned to the page.

Image
@MrVladis1av MrVladis1av added the enhancement New feature or request label Feb 17, 2025
@farnabaz farnabaz linked a pull request Feb 21, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant