Hi,
I would like to change what is displayed in the block "My buddies' recent posts". I would like to control which content types that is shown in the list.
I thought that this was controlled in the View "buddylist_posts", but if I override this View and change the filters it doesn't affect what is displayed in the block "My buddies' recent posts".

The same goes for the block "My buddylist", that I thought was controlled by the View 'buddylist'.

How can I control the blocks "My buddies' recent posts" and "My buddylist"?

Thanks,
Seth

Comments

seth97’s picture

Status: Active » Closed (fixed)

I decided to do my own block instead.

First I cloned the View "buddylist_posts" and called it "friends_posts" and changed the filters to my needs.

Then I created a new block with the following code:

//load the view by name
$view = views_get_view('friends_posts');
//output the top three items in the view with the node title as an argument
$current_view = views_build_view('embed', $view, array($title), false, 6);

$path = dirname($_SERVER['PHP_SELF']);

//Check if current_view is empty
if (!empty($current_view)) { 
print "my friends' recent posts <br>";
print $current_view;
print '<a href="' .$path. '/friends/posts">more</a>'; 
}