drupal - Add parameter to pager link url -
drupal - Add parameter to pager link url -
pager link points www.example.com/node/100?page=1
. need pass addtional parameters through link: www.example.com/node/100?page=1&my_param_1=1&my_param_2=2
. illustration have view pager. want every link in pager point anchor (for illustration quicktabs tab). how can done?
you need include 'parameters' in pager theme array:
... ['tablepager'] = array( '#type' => 'markup', '#markup' => theme('pager', array( 'element' => 0, 'parameters' => array( 'name' => 'value' ) )) ),
taken from: https://api.drupal.org/api/drupal/includes!pager.inc/function/theme_pager/7
drupal drupal-6 pager
Comments
Post a Comment