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 ??
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | portfolio.txt | 5.37 KB | solide-echt |
| #6 | userportfolios.txt | 2.89 KB | solide-echt |
| #2 | view_user_list_viewfield.txt | 6.83 KB | gregoiresan |
| view_users_list_with_nodes.txt | 4.74 KB | gregoiresan |
Comments
Comment #1
merlinofchaos commentedThere'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.
Comment #2
gregoiresan commentedI 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
Comment #3
dawehner#2
Can you please provide a full export? The configuration is truncated.
Comment #4
gregoiresan commentedActually, 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
Comment #5
dawehnerAh 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 :)
Comment #6
solide-echt commentedI 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?
Comment #7
dawehnerI guess the problem is this
The parent view links to the user. So perhaps if you disable this, it should work.
Comment #8
solide-echt commentedYes, that dit it.
Thanks for your help!
Comment #9
dawehnerCool thanks!