How can i sort my list page by Desc
zboy812 |
|
|
---|---|---|
How can i sort my page.list.data.tpl ? I am aware how to do it with a link: index.php?e=page&c=data&s=desc how can i do this in my .tpl thank you.
|
Macik |
|
|
---|---|---|
Are you speak about output some UI elements to control pages sorting mode within category list? If so...
In your TPL:
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 |
zboy812 |
|
---|---|
Hi thank you for your response, i need to sort the output without any UI . I need to sort the output by default. |
Macik |
|
---|---|
You can configure `default sort mode` for certain catagory: Administration panel → Extensions → Pages → Structure → Catagory → Config, options `Sorting column` and `Sorting direction`. https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
zboy812 |
|
---|---|
That was exactly what i wanted, thank you!!!! |