×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Front end Ordering
mrlee
New Member
5 年 11 个月 前 #1918
由 mrlee
Front end Ordering was created by mrlee
Hi I would like to display the list elements by the backend ordering, by default it's sort by Item ID.
I hope you can help me
Thanks.. .
I hope you can help me
Thanks.. .
Please 登录 或 注册一个帐号 to join the conversation.
Ralf Meyer
New Member
Posts: 2
5 年 11 个月 前 #1920
由 Ralf Meyer
Replied by Ralf Meyer on topic Front end Ordering
e.g. ../models/yourmodels.php
if ($orderCol && $orderDirn)
{
//$query->order($db->escape($orderCol . ' ' . $orderDirn));
}
$query->order($db->escape('a.id' . ' ' . 'DESC'));
if ($orderCol && $orderDirn)
{
//$query->order($db->escape($orderCol . ' ' . $orderDirn));
}
$query->order($db->escape('a.id' . ' ' . 'DESC'));
Please 登录 或 注册一个帐号 to join the conversation.
创建页面时间:0.048秒