2

I am creating view for displaying content list and some exposed filters. I wanted to display all published content of any user and all content created by user(current user). Currently i am able to display only own content list by using contextual filter:

  • Click "Advanced" > "Contextual Filters"
  • "Add" > "Content: Author uid"
  • "Provide default value" > "User ID from logged in user"
  • Save

How can i display in list a combination of All published contents from all authors + published and unpublished contents of logged in user?

4
  • I forgot the name but there is module which defines a permission name "view own unpublish content". You don't need to add contextual filter in any case. Sep 16, 2015 at 5:26
  • Yes! i have tried this option but actually this is not satisfying my requirements. When we set Access to "view own unpublish content" that will display only unpublished content.
    – Reshma
    Sep 16, 2015 at 8:12
  • No, that should display all the content. Seems you are applying the node status filters as well. Sep 16, 2015 at 8:18
  • You need to move the contextual filter down into the filter criteria on the left of the views ui where you can create advanced conditional logic (AND/OR). Do this with Views arguments in filters Sep 16, 2015 at 20:48

2 Answers 2

1

You can use Filter "User :current".if you not get desire result add relation of user table then try it

0

You anyway want to display all content from all the authors and current user so no need to add contextual filter, then it's going display all the content from your site with logged in user's content too.

Also you can try this link

1
  • Please avoid previous comment. What i want in list a combination of All published content from all authors + published and unpublished content of logged in user
    – Reshma
    Sep 16, 2015 at 8:31

Your Answer

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

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