i asked this on another issue but that was before i noticed it was a closed issue. I have tried several different ways to override multiple pagers differently but i cannot seem to point to either one directly with the code that i am using.

function Subtle_Hightlights_views_mini_pager($tags = array(), $limit = 10, $element = 0, $parameters = array(), $quantity = 9) {
  global $pager_page_array, $pager_total;

  // Calculate various markers within this pager piece:
  // Middle is used to "center" pages around the current page.
  $pager_middle = ceil($quantity / 2);
  // current is the page we are currently paged to
  $pager_current = $pager_page_array[$element] + 1;
  // max is the maximum page number
  $pager_max = $quantity;
  // End of marker calculations.
	if ($pager)

  $li_previous = theme('pager_previous', (isset($tags[1]) ? $tags[1] : t('')), $limit, $element, 1, $parameters);
  if (empty($li_previous)) {
    $li_previous = "";
  }

  $li_next = theme('pager_next', (isset($tags[3]) ? $tags[3] : t('')), $limit, $element, 1, $parameters);
  if (empty($li_next)) {
    $li_next = "";
  }

  if ($pager_total[$element] > 1) {
    $items[] = array(
      'class' => 'pager-previous-mini',
      'data' => $li_previous,
    );
 if ($pager_current == 9){
 	$li_next = "";
 }
    $items[] = array(
      'class' => 'pager-current-mini',
      'data' => t('@current of @max', array('@current' => $pager_current, '@max' => $pager_max)),
    );

    $items[] = array(
      'class' => 'pager-next-mini',
      'data' => $li_next,
    );
    return theme('item_list', $items, NULL, 'ul', array('class' => 'pager'));
  }
}

this manipulates all mini pagers but i only want this on one as this limits the pager display to 9. the other pager max is 5 and i want to make sure that is displayer correctly.

i have tried using the id of the pager and tried the id of the pager including the block but neither one seems to work. Anyone have any ideas?

array(7) { [0]=> string(37) 
"views_mini_pager__news_items__block_2" [1]=> string(25) 
"views_mini_pager__block_2" [2]=> string(27) 
"views_mini_pager__slideshow" [3]=> string(35) 
"views_mini_pager__news_items__block" [4]=> string(23) 
"views_mini_pager__block" [5]=> string(28) 
"views_mini_pager__news_items" [6]=> string(16) 
"views_mini_pager" }

i have tried all of these with no progress towards what i need.

Comments

merlinofchaos’s picture

Status: Active » Fixed

Try naming your function:

function Subtle_Highlights_views_mini_pager__news_items(// ... and so on
delion’s picture

nope that does not work either. Not exactly sure why none of these work everything i read states this should be the answer to what im looking for.

delion’s picture

Status: Fixed » Active

status changed to active
No one has any thoughts as to why i cant independently override mini pagers?

mustanggb’s picture

Status: Active » Closed (outdated)