Skip to content

Extension placement fix / moving the pagination #642

Answered by ApfailKuchen
ApfailKuchen asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to solve the problem. I made the following code changes:

Old

	<?php     
      if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && !$this->item->paginationrelative) :
         echo $this->item->pagination;
      ?>
      <?php endif; ?>

New

<?php

function renderPaginationIfNeeded($item) {
    if (!empty($item->pagination) && $item->pagination && $item->paginationposition && !$item->paginationrelative) {
        echo $item->pagination;
    }
}

?>

and then added the code under renderAuthorInfo:

 <?php $astroidArticle->renderSocialShare(); ?>
  <?php $astroidArticle->renderAuthorInfo(); ?>
  <?php renderPaginationIfNeeded($this-…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ApfailKuchen
Comment options

@ApfailKuchen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ApfailKuchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants