typoscript - Typo3 Sorting on view page by overwrite Demand? -


<f:link.page pageuid="{settings.listpid}"                   additionalparams="{tx_news_pi1:{overwritedemand:{order: 'crdate,asc'}}}" addquerystring="1">  		sort crdate asc      </f:link.page>  	  	  	  <f:link.page pageuid="{settings.listpid}"                   additionalparams="{tx_news_pi1:{overwritedemand:{order: 'title,desc'}}}" addquerystring="1">  		sort title desc      </f:link.page>

sort crdate asc

sort title desc

i added 2 sort link on page.i 1 sort working fine.when click on second sort.its not sorting according condition.

sounds need condition changes asc or desc other value when asc link changes desc? replace hardcoded asc/desc text bits correct code

i think when use addquerystring in link (with active order) order double in url?

maybe can try excluding order link can sure there's 1 order in link:

argumentstobeexcludedfromquerystring="{0: {tx_news_pi1: {overwritedemand: 'order'}}}"

not sure if syntax right maybe guide in right direction.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -