Return to Snippet

Revision: 20689
at November 23, 2009 06:45 by Ateneatech


Updated Code
<?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'));
}
?>

Revision: 20688
at November 23, 2009 06:37 by Ateneatech


Initial Code
<?php
$view = views_get_view(----PONER NOMBRE DE LA VISTA----);
$view->get_total_rows = true;
$current_view = views_get_current_view();
$view->set_arguments($current_view->args);
$view->execute(----PONER NOMBRE DEL DISPLAY----);
if ($view->total_rows > $current_view->pager['items_per_page']){
print(l(t('More'), 'downloads/pdf-brochure'));
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Add more link in a view

Initial Tags
drupal

Initial Language
PHP