I am trying to create a page in Views where it lists all the users and if they have created a content type of Member Portfolio then it puts a link next to the name to view that Portfolio.
I have a page that lists the users and under Relationships I have User:Content Authored. So it shows the user with a link to the content they created of all content types. If I try to filter in anyway of showing only the content type of Member Portfolio it only shows the users that have created a portfolio.
So what do I need to change/add/edit to have it list every member on the site and only put a link next to those who have created a Member Portfolio?
Comments
Comment #1
ryanfc78 commentedComment #2
saurabh.dhariwal commentedFor your need create "User view" (i.e. admin/structure/views). So, that all user that avaliable in your website that list.
then add "Relationships">>"User: Content authored".
Add two fields:
Override views templates file for nid field and write this code.
Let me know if you face any query/concern regarding this.
Thanks!
Comment #3
renatog commentedHi guys
I tested #2 and works good.
Thank you @saurabh.dhariwal
Comment #4
renatog commented