I'm using Drupal 8 and I've created a view with REST. I would like to filter my content, so I've created a field criteria and I've added a Published field and exposed.

When I use /my-view-path?status=1 show me published content, when I use /my-view-path?status=0 show me unpublished content, those are working good. But I would like to use /my-view-path?status=All and show me published and unpublished content.

This is how I've configured published field:

enter image description here

But I don't know how to do that, any help?

  • /my-view-path without any ?status will show all. If you want All, use views arguments.
    – Nikit
    Commented Apr 21, 2021 at 7:29
  • thank you @Nikit but i need to use that argument because i'm using another system to request that url
    – mxr10
    Commented Apr 23, 2021 at 1:47
  • Does this answer your question? Adding an 'All' option to a views exposed filter
    – Nikit
    Commented Apr 23, 2021 at 21:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.