0

I have created a view that shows few entities. To be able to see only a particular entity, I created a contextual filter.

How can I expose the contextual filter I added?

  • 1
    Welcome to Drupal Answers! There isn't anything you need to do: The Views module applies both the contextual filter and the other filters to filter the entities to show. – kiamlaluno Aug 14 '18 at 8:39
  • I see, but how can I make contextual filter exposed for the user? – User88002 Aug 14 '18 at 8:47
  • That is not the question you are asking, since sum up doesn't mean exposing the contextual filter to the users. – kiamlaluno Aug 14 '18 at 8:50
  • Sorry, I will create a new question – User88002 Aug 14 '18 at 8:51
  • There is no need to create a new question. It's enough to make this question clearer, which is what I did. – kiamlaluno Aug 14 '18 at 8:53
2

Contextual filter is an an argument to the view, for example through the path or block/plugin context.

It is not visible to the user, it's visible to Drupal.

If you want something to be visible to the user, you need to instead add a filter and then tick the checkbox to expose it, creating a so called "exposed filter". That should then show up in a filter form.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.