You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we can only pass an argument trough the views filter criteria, not the contextual filters, as the latest don't get passed to the view. But the fix is quite straightforward. I'll file a PR for this. And it's not intrusive with actual behaviour.
The text was updated successfully, but these errors were encountered:
It allows to pass views contextual filters as path arguments. This is, you could filter posts by tid (which needs to be done through contextual filters - exposed filters only allow to filter by term name) by adding a contextual filter to the view. Then you can just add the tid to the endpoint like this:
```
/api/v2/views/posts/page/12?page=1
```
This will show the posts which have the term id 12.
This is for the views v2 end point only.
robertgarrigos
changed the title
Allow views contextual filters to pass to the view
Allow views contextual filters to get passed to the view in the views endpoint
Jul 23, 2019
robertgarrigos
changed the title
Allow views contextual filters to get passed to the view in the views endpoint
Allow views contextual filters to get passed to the view trough the views endpoint
Jul 23, 2019
Right now, we can only pass an argument trough the views filter criteria, not the contextual filters, as the latest don't get passed to the view. But the fix is quite straightforward. I'll file a PR for this. And it's not intrusive with actual behaviour.
The text was updated successfully, but these errors were encountered: