ARCHIVE - Using Views 2 Arguments
Last modified: June 18, 2009 - 19:46
Here's a comprehensive 36 minute video about Using Views Arguments. It covers all the settings, what they do and follows an example of limiting a user to seeing a view only if the argument of their uid (user id) matches the logged in user.
The example shown is of a blogging site which supports multiple bloggers. But that's just the example used.
It also showcases using a preprocess function to insert convenient links to user-based views within the user profile page.

How can we set the items per page to a view, programatically?
How can we set the items per page to a view, programatically?
The similar code we are using in drupal 5 is as follows:
$view = views_get_view('visual_articles');
print (views_build_view('embed', $view, array(0 => '1', 6 => 'video'), $view->use_pager, $view->nodes_per_block));
Can u please give me the corresponding code in druapal 6
Thanks in advance.
Cibi
cibi.jacob@gmail.com
Try this: $view =
Try this:
$view = views_get_view('views_name');$view->set_display('block_1');
$view->display_handler->set_option('items_per_page', 3);
$view->display_handler->set_option('use_pager', 0);
print $view->preview(NULL, array($arg));
--------------------------------------------------
http://zugec.com