What is the best way to make a LiveWhale search tool that only looks at content within a single group?
Quick thoughts in passing:
- Filtering for a specific group’s content would have to be done in the results widgets with an group argument:
<arg id="group">XYZ</arg> - Allowing the user to select the group would need an additional form input element, likely a dropdown or radio. Then, that input’s value is passed to the group argument of the widgets.
- The group input may need to be generated by a Groups widget to get exact names or IDs as the passed value, as well as keep the list up to date as groups are added/renamed/removed.
- Could also potentially filter Groups at this step: “only list Groups that can display content at the moment”.
1 Like
Thanks Nick! Yes +1 on setting up search widgets that include hard-coded <arg id="group">Group I Want To Search</arg> (or you could use <arg id="group">me</arg> in a file include you might reuse on different sub-sites) would be the simplest thing to start with.