test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • joomdude808 Friend
    #191202

    I have removed the infinite scroll feature and want pagination. The category page is displaying pagination, but not the tag page.

    How do I get the tag page to display pagination?

    phong nam Friend
    #508315

    Hi joomdude808,

    You can backup your files and open templatesja_argohtmlcom_contentcategoryblog.php file, replace (88-103th) lines:

    <?php
    // Build the additional URL parameters string.
    $urlparams = '';
    if (!empty($this->pagination->_additionalUrlParams))
    {
    foreach ($this->pagination->_additionalUrlParams as $key => $value)
    {
    $urlparams .= '&' . $key . '=' . $value;
    }
    }
    $next = $this->pagination->get('pages.current') * $this->pagination->limit;
    $nextlink = JRoute::_($urlparams . '&' . $this->pagination->prefix . 'limitstart=' . $next);
    ?>
    <div id="page-nav">
    <a id="page-next-link" href="<?php echo $nextlink ?>"></a>
    </div>

    with

    <?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->get('pages.total') > 1)) : ?>
    <div class="pagination">
    <?php if ($this->params->def('show_pagination_results', 1)) : ?>
    <p class="counter">
    <?php echo $this->pagination->getPagesCounter(); ?>
    </p>

    <?php endif; ?>
    <?php echo $this->pagination->getPagesLinks(); ?>
    </div>
    <?php endif; ?>

    Make sure that you set Show to Pagination option in Blog Layout Options of menu item (Category Blog type).

    joomdude808 Friend
    #508418

    My apologies, I should have stated that I am using K2. Would I still use that same instructions?

    phong nam Friend
    #508441

    Hi,

    Well, you can open templatesja_argohtmlcom_k2ja_argocategory.php file, replace (269-286th) lines:

    <?php
    // Build the additional URL parameters string.
    $urlparams = '';
    if (!empty($this->pagination->_additionalUrlParams))
    {
    foreach ($this->pagination->_additionalUrlParams as $key => $value)
    {
    $urlparams .= '&' . $key . '=' . $value;
    }
    }
    $next = $this->pagination->get('pages.current') * $this->pagination->limit;
    $nextlink = JRoute::_($urlparams . '&' . $this->pagination->prefix . 'limitstart=' . $next);
    ?>
    <div id="page-nav">
    <a id="page-next-link" href="<?php echo $nextlink ?>"></a>
    </div>

    <?php endif; ?>

    with


    <!-- Pagination -->
    <?php if(count($this->pagination->getPagesLinks())): ?>
    <div class="k2Pagination">
    <?php if($this->params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?>
    <div class="clr"></div>
    <?php if($this->params->get('catPaginationResults')) echo $this->pagination->getPagesCounter(); ?>
    </div>
    <?php endif; ?>

    <?php endif; ?>

    Then put below overridden css styles of K2 pagination into templates/ja_argo/css/custom.css file:


    /*Css styles of K2 pagination on Argo category layout*/
    div.k2Pagination ul {
    margin: 0 70px;
    text-align: center;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    }

    div.k2Pagination ul li {
    padding: 5px;
    }

    ul.pagination-list li > a {
    background-color: transparent;
    float: left;
    padding: 4px 12px;
    line-height: 25px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #de5932;
    }

    Remember to backup your file before editing.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  phong nam 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum