Expand my Community achievements bar.

SCF - Filtering with Query Parameters

Avatar

Level 1

I have been attempting to add filtering to the QnA component. I watched the following gem https://docs.adobe.com/content/ddc/en/gems/social-component-framework-in-aem-6.html in it the Ideation component is created from extending the forum. He implements a filtering feature using query parameters

<a href='{{pageInfo.basePageURL}}.html?filter=tag%20like%20"rewards"' class="idea-filter" >Rewards</a> <a href='{{pageInfo.basePageURL}}.html?filter=tag%20like%20"customer"' class="idea-filter">Customer Service</a> <a href='{{pageInfo.basePageURL}}.html?filter=tag%20like%20"other"' class="idea-filter" >Other</a> <a href='{{pageInfo.basePageURL}}.html?filter=tag%20like%20"products"' class="idea-filter">Products</a> <a href='{{pageInfo.basePageURL}}.html?filter=tag%20like%20"experience"' class="idea-filter" >Experience</a> </div>   

I've been able to get this working in my component however the requirement is that they are able to filter by multiple tags. For example filter all questions that have the rewards tag or the customer tag. What would this query look like? And is there any place where these filter parameters are documented?

Thanks

0 Replies