-
AuthorPosts
-
October 7, 2013 at 1:53 pm #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 Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
October 8, 2013 at 3:14 am #508315Hi 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).
October 9, 2013 at 3:45 am #508418My apologies, I should have stated that I am using K2. Would I still use that same instructions?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
October 9, 2013 at 5:44 am #508441Hi,
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.
1 user says Thank You to phong nam for this useful post
-
AuthorPosts
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