What I want to do :

A list of users with their nodes list

something like this :

User1 : name
user1's_node_a
user1's_node_b
user1's_node_c
user1's_node_d

User 2 : name
user2's_node_a
user2's_node_b
user2's_node_c
user2's_node_d

etc...

I wanna do that with any node type and not only content profile or profile categories. Of course, I did try with a user view type.
I also tried to add a relationship : Author nodes (Relate nodes to the user who created it. This relationship will create one record for every node created by the user.)

And I end up with duplicates user records instead of One User - multiple nodes

If someone could tell me what is wrong in my approach ??

Comments

merlinofchaos’s picture

Category: feature » support
Status: Active » Fixed

There's no real way to do this with one single view. You might do well using the views_field_view module to embed a node view inside a user view. That could run a lot of queries, of course, so caching might be advised, but that's really the best choice.

gregoiresan’s picture

StatusFileSize
new6.83 KB

I have tried to embed a view from a viewfield, the problem I have in this case is Argument.

In a node view, the viewfield catch the argument from the node (author:uid, node:uid, ...etc). But in that case, I need each row to send an argument to the attached viewfield, which first, as you said, make tones of queries and second, is clearly a head breaker because relationship doesn't seem to be working as argument for the row.

So, I don't really see how I can do that ? May be I am not doing this the right way.

Attached is the following view:

Field 1: User Name

'relationship': Node > Content profile (where the viewfield is attached)

Field 2: Picture 1 in Content Profile (I can see it, no problem).
Field 3: Viewfield (empty)

View is attached

dawehner’s picture

Project: Views (for Drupal 7) » Views Field View
Version: 6.x-3.0-alpha2 » 6.x-1.0-beta1
Status: Fixed » Postponed (maintainer needs more info)

#2

Can you please provide a full export? The configuration is truncated.

gregoiresan’s picture

Actually, it seems to be the full view... Regarding your comment, I have either a bug or a I made a big mistake in the configuration... :-o

dawehner’s picture

Ah what you pasted is the "subview"? If yes you misses the arguments :)
If you pasted the mainview you don't have a views_field_view :)

solide-echt’s picture

StatusFileSize
new2.89 KB
new5.37 KB

I guess I hit the same wall. It's probably my stupid mistake or I'm having issues with Views3 but after trying more than an hour I humbly ask your assistance.
I want a view on users that list a sample of every users photography portfolio. I've made a base node view 'portfolio' that lists 3 photos based on the username as argument. The top view is equally easy: a user view 'userportfolios' that displays username and (should...) embed the base view.
However, no portfolio is shown. I've tried declaring a relation to author node, but alas.

What are we doing wrong?

dawehner’s picture

I guess the problem is this


$handler->display->display_options['fields']['name']['link_to_user'] = 1;

The parent view links to the user. So perhaps if you disable this, it should work.

solide-echt’s picture

Yes, that dit it.
Thanks for your help!

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

Cool thanks!

Status: Fixed » Closed (fixed)

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