Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Alter and print view in page.tpl.php
- $view = views_get_view('testview');
- $view->set_display('default');
- // Turn off cache
- $view->display_handler->set_option('cache',array(
- 'type' => 'none',
- ));
- // Set number of items per view
- $view->display_handler->set_option('pager',array(
- 'type' => 'full',
- 'options' => array(
- 'items_per_page' => '1',
- ),
- )
- );
- print $view->execute_display('default');
- ?>
Add Comment
Please, Sign In to add comment