/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $view = views_get_view(----VIEW NAME----); $view->get_total_rows = true; $current_view = views_get_current_view(); $view->set_arguments($current_view->args); $view->execute(----DISPLAY NAME----); if ($view->total_rows > $current_view->pager['items_per_page']){ print(l(t('More'), 'downloads/pdf-brochure')); } ?>