How to create a user listing page with a tpl.php I would like to create a listing page of users of a particular role.

Inside this view, there should be another view which shows the related content for each user.

When I try to create a view the system gives me the option to use just fields, but I need to be created like a node so I can use a tpl.php file.

How can I get a tpl.php file for this?

If I create a view for the users and one with the contents(contextual filter uid), can I embed  the second view inside the view-unformatted.tpl.php?
Here I create similar page with views: http://cgart.ir/en/members

as you can see there is a list of users and 5 last uploaded image. the page created with views and latest artworks is another views.

to do that:


create first view for list users and in Format select Show:Rendered entity | Settings
create second view and configure CONTEXTUAL FILTERS and add Content: Author uid


edit user-profile.tpl.php and render second view there:

$account = $variables['elements']['#account'];
&lt;?php print views_embed_view('second_view', 'page_1', $account-&gt;uid); ?&gt;