Or you could do what I do on my user profiles which
is to use a views_embed_view in the tpl file and pass the argument directly
there. Your code will look something like this:
<?php
print views_embed_view('NameOfMyView',
'block_1', $account->uid);
?>
which means the user's uid gets dynamically
inserted as the argument
Neil
----- Original Message -----
Sent: Wednesday, July 15, 2009 9:29
AM
Subject: Re: [support] Author's nodes on
profile page
To get thelisting to be per user, simply add the User: UID to
your argument section of your view. Make sure the "Action to take if argument
is not present:" is set to provide a default argument and then set the default
argument type to "User ID from URL".
As for showing the blocks on the
profile pages, go to your block settings. Set the block specific visibility
settings to "Show on only the listed pages." and the path to
users/*
That should do the trick.
On Wed, Jul 15, 2009 at 7:00 AM, Francesco Baldini
<fb@codicelibero.net>
wrote:
On
my site users can write 2 different content
type:
content-one
content-two
I have to show latest x content
type on their profile page
site.com/user/autorA, site.com/user/autorB,
etc..
I need to create 2 different blocks to separate these two nodes
type, I
used Views2 to let me show these blocks by content type, what I
need now
is being able to let this listing appear on profile pages and
listing
nodes created by the author (1, 2, etc...) and not from
everyone..
I guess I have to work on Relationship or Filters but have
no idea..
thanks
--
[ Drupal support
list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/
]