Dear all,

Sorry if the problem seems obvious and if many solutions exist. I could not find one after some hours of looking around on the forum and the web.

Here is the description of my simple request :
* I have users with profile type "authors". They are able to post on the website, and they have a special page to display their profile.
* I want to add the list of content they created in this page.

Even-though this seems very easy, I could not manage to use views to get that.

Any help or tutorial on the web?

CommentFileSizeAuthor
#1 drupal_views_profile2.png3.35 KBTanzaho

Comments

Tanzaho’s picture

Status: Active » Fixed
StatusFileSize
new3.35 KB

I solved it by using one tip I read many times without conviction.
The tip is exaplained here : http://drupal.stackexchange.com/questions/10971/using-the-profile2-modul...

I installed Context + View Default Argument From Context Module . No need to change the code as specified in the webpage above).

The in views I created a new block showing my content of type "news". I added a contextual filter "Content : Author uid" , and configured it as the image below.
Views Profile2 and content list by aythor

Hope this helps others.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.