I want to know hos is it possible to display all created nodes by a user in his profile using this module? Please give step by step guide if its possible.

Comments

sadashiv’s picture

You can create a block in views.
The views should be of type "content" and add the fields like content title, content teaser as per your requirements in the views.
Add user id from contextual filters in advanced setting of the view.
Save this view
Now create a block from Structure-->blocks-->Add block with following code

$uid = arg(1);
echo views_embed_view('MY_VIEW_NAME', 'block_1', $uid);

Select php in the input filters.

Configure shown on page of the block to be included in profiles page only.

Hth,
Sadashiv.

shamio’s picture

Thanks for your help. I made the views block and i also made the block in structure part. But my only problem is configuring page to be shown in profile pages. Can you please explain it more to how to show it on profile pages? My current theme has "Hooter menu", "Footer Menu", "Content", "Sidebar" and etc.. . Which of them should be selected? Please explain this step a little more for me.

joachim’s picture

Status: Active » Fixed

I would recommend using EVA to output the view.

shamio’s picture

Thanks a lot for your help. I installed EVA and it looks the same thing i want, but i still couldn't work with it :(
I don't know where can i configure the views block i made to display any users published contents on his profile with EVA.

shamio’s picture

I successfully did it. Thanks a lot both members for your great helps.

Status: Fixed » Closed (fixed)

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