Foren / Cotonti / Skins / Sort List Row Desc .tpl

How can i sort my list page by Desc

Macik
#41592 7. April 2016, 02:57

Are you speak about output some UI elements to control pages sorting mode within category list? If so...

  1. Some of the fields had built-in controls accessed ftom TPL by `{LIST_TOP_*}`, where * is field name, like `TITLE`
  2. Description field do not have autogenerated tags, but you can generate if youself, some way like this:

In your TPL:

<a href="{PHP.c|cot_url('page','c=$this&s=desc&w=asc')}" rel="nofollow">{PHP.R.icon_down}</a>
<a href="{PHP.c|cot_url('page','c=$this&s=desc&w=desc')}" rel="nofollow">{PHP.R.icon_up}</a> {PHP.L.Description}

So you get something like this:

 

By the way — i'd open corresponding issue on github (#1506).

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F