I would like to have a listing module where
content editor could select from a list of article types (custom field on a custom template). The list should then query all articles for the selected articletype value.
If I was using a hardcoded item query it would be something like:
Where Tips should correspond to the selection made by the content editor.
We don't want the
content editor to have to go and create a new Item Query each type they wanted a different article type which is why I'd like the list to be driven by
rendering parameters and selection fed into the query.
Using Sitecore 9.1 and SXA 1.8
Update: I have followed the suggestion of using a code
datasource but I can't figure out how to pass in a filter value either through
rendering parameters, or even on a user action.
eg: either content editor selects an article type from a drop down as a rendering parameter OR on the front end if we were to show a list of all, and allow the user to select an article type to show only those. It can't be handled in say
Using a code
datasource you can access the
Sitecore.Context or the Item itself but can't seem to access anything to do with the rendering and would like to avoid putting the article type in the
querystring of the url and having to do a postback.