CMS MADE SIMPLE FORGE

LISE

 

[#12699] Prev & Next Navigation ignores sort order

avatar
Created By: Finn Lovenkrands (webform)
Date Submitted: Tue Mar 19 08:37:40 -0400 2024

Assigned To: Fernando Morgado (JoMorg)
Version: 1.5.6
CMSMS Version: 2.2.18
Severity: Trivial
Resolution: None
State: Open
Summary:
Prev & Next Navigation ignores sort order
Detailed Description:
When having an orderby like orderby='item_created|DESC', the  descending part is
ignored when clicking the Prev & Next Navigation and the list reverts to default
orderby.


History

Comments
avatar
Date: 2024-10-09 16:00
Posted By: Koa'link (koalink)

Same here, even with {xt_module_hint module=LISEInstance
orderby='item_created|DESC'}
      
avatar
Date: 2025-10-04 07:29
Posted By: Jocelyn Lusseau (kraygoon)

Same problem here
      
avatar
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