DevFuse Products (View All Products)
Issue information
-
#000440
-
0 - None Assigned
-
Fixed
-
3.0.3
-
3.1.1
Issue Confirmations
-
Yes (0)No (0)
I wanted to be able to order the garage listing by clicking the column headers...
So I have modified my template
ACP -> Look & Feel -> Template -> skin_garage -> itemList
I have replaced the "<tr class='header'>...</tr>" with the next code:
You may include it in the next version
So I have modified my template
ACP -> Look & Feel -> Template -> skin_garage -> itemList
I have replaced the "<tr class='header'>...</tr>" with the next code:
<tr class='header'>
<th scope='col' class='short' style='width:1%;'>{$this->lang->words['thumbnail']}</th>
<th scope='col'>
<if test="$this->request['orderby'] == 'make_name'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=make_name&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_name']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_name']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=make_name&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_name']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_name']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=make_name&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_name']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_name']}</a>
</if>
<if test="$this->request['orderby'] == 'year'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=year&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['year']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['year']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=year&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['year']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['year']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=year&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['year']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['year']}</a>
</if>
<if test="$this->request['orderby'] == 'rating'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=rating&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['rating']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['rating']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=rating&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['rating']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['rating']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=rating&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['rating']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['rating']}</a>
</if>
<if test="$this->request['orderby'] == 'member_name'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=member_name&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_owner']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_owner']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=member_name&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_owner']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_owner']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=member_name&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['vehicle_owner']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['vehicle_owner']}</a>
</if>
</th>
<if test="showPriceFieldTh:|:$this->settings['gs_enable_vehicle_price']">
<th scope='col' class='short'>
<if test="$this->request['orderby'] == 'price'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=price&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['price']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['price']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=price&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['price']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['price']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=price&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['price']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['price']}</a>
</if>
</th>
</if>
<if test="showOdometerFieldTh:|:$this->settings['gs_enable_vehicle_odometer']">
<th scope='col' class='short'>
<if test="$this->request['orderby'] == 'odometer'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=odometer&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['odometer']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['odometer']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=odometer&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['odometer']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['odometer']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=odometer&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['odometer']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['odometer']}</a>
</if>
</th>
</if>
<th scope='col' class='short'>
<if test="$this->request['orderby'] == 'views'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=views&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['views']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['views']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=views&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['views']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['views']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=views&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['views']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['views']}</a>
</if>
</th>
<th scope='col' class='short'>
<if test="$this->request['orderby'] == 'date_added'">
<if test="$this->request['orderhow'] == 'desc'">
<a href='{parse url="do=item_list&orderby=date_added&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['date_added']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['date_added']} {parse replacement="sort_up"}</a>
<else />
<a href='{parse url="do=item_list&orderby=date_added&orderhow=desc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['date_added']} {$this->lang->words['in']} {$this->lang->words['descending_order']}' style='text-decoration: none;'>{$this->lang->words['date_added']} {parse replacement="sort_down"}</a>
</if>
<else />
<a href='{parse url="do=item_list&orderby=date_added&orderhow=asc" base="publicWithApp"}' title='{$this->lang->words['order_by']} {$this->lang->words['date_added']} {$this->lang->words['in']} {$this->lang->words['ascending_order']}' style='text-decoration: none;'>{$this->lang->words['date_added']}</a>
</if>
</th>
</tr>
You may include it in the next version
1 user(s) are reading this issue
0 members, 1 guests, 0 anonymous users












