[#12699] Prev & Next Navigation ignores sort order
History
Comments
Date: 2024-10-09 16:00
Posted By: Koa'link (koalink)
Same here, even with {xt_module_hint module=LISEInstance
orderby='item_created|DESC'}
Date: 2025-10-04 07:29
Posted By: Jocelyn Lusseau (kraygoon)
Same problem here
Date: 2025-10-04 08:44
Posted By: Jocelyn Lusseau (kraygoon)
The only solution I found is to add a suffix to the following variables :
$firsturl, $prevurl, $nexturl and $lasturl.
Like this :
<ul>
<li class="first">
<a{if !empty($firsturl)} href="{$firsturl}{if
!empty($url_suffix)}{$url_suffix}{/if}"{/if}>
First
</a>
</li>
<li class="prev">
<a{if !empty($prevurl)} href="{$prevurl}{if
!empty($url_suffix)}{$url_suffix}{/if}"{/if}>
Prev
</a>
</li>
<li class="count">
<span>{$pagenumber} / {$pagecount}</span>
</li>
<li class="next">
<a{if !empty($nexturl)} href="{$nexturl}{if
!empty($url_suffix)}{$url_suffix}{/if}"{/if}>
Next
</li>
<li class="last">
<a{if !empty($lasturl)} href="{$lasturl}{if
!empty($url_suffix)}{$url_suffix}{/if}"{/if}>
Last
</a>
</li>
</ul>
And {$url_suffix} is something like :
{$url_suffix="&cntnt01orderby=item_start|DESC"}
Be careful with &cntnt01 before any param.
The final URL may be something like :
https://domain.tld/blog/page/2/2/7&cntnt01orderby=item_start|DESC