grisha2217
Active member
Hi all. I want to get next page link like
I know how to render page_nav template:
But i want to get next page link
I know how to render page nav:
Next i created page_nav_next_page template:
How i can render page_nav_next_page template with page nav params?
Thanks.
<link rel="next" href="threads/334644/page-2">
in json responseI know how to render page_nav template:
PHP:
$output['pageNav'] = $this->createTemplateObject(
'market_index_page_nav',
$this->_params
);
But i want to get next page link
HTML:
<link rel="next" href="{xen:link $linkType, $linkData, '_params={$linkParams}', 'page={$nextPage}'}" />
I know how to render page nav:
PHP:
$pageNav = XenForo_Template_Helper_Core::helperPageNavHtml('public', $this->_params['itemsPerPage'], $this->_params['totalItems'], $this->_params['page'], 'market');
Next i created page_nav_next_page template:
HTML:
<xen:if is="{$nextPage}">
<link rel="next" href="{xen:link $linkType, $linkData, '_params={$linkParams}', 'page={$nextPage}'}" />
</xen:if>
How i can render page_nav_next_page template with page nav params?
Thanks.