OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Sorting statement: "alone_category/tmpl/list.php (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Sorting statement: "alone_category/tmpl/list.php
#13461
dakadam (User)
Junior Boarder
Posts: 35
graphgraph
User Offline Click here to see the profile of this user
Sorting statement: "alone_category/tmpl/list.php 2 Years, 1 Month ago Karma: 0  
After first opening the Page displays the Property list. I do not know, what the tools are sorted displayed Property?
The User can then choose from the drop down menu what tools are sorted he wants .
I would need to default tools are sorted by first opening page was: by Date descending property insertion (date).
www.realitni-seznamka.cz/index.php/compo...one_category/59/Byty
I 'm not as strong programmer in PHP. Can you please advise ?
I thank you very much!
 
Logged Logged  
  The administrator has disabled public write access.
#13474
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Sorting statement: "alone_category/tmpl/list.php 2 Years, 1 Month ago Karma: 61  
Hello,

as i understand you already found solution, for all other

for sort properties by date in component real estate manager
goo.gl/KLUOcv

You need in file
{site}/components/com_realestatemanager/realestatemanager.php

find rows:
Code:

            $sort_arr = array();
            $sort_arr['order_field'] = 'htitle';
            $sort_arr['order_direction'] = 'asc';
            $item_session->set('rem_housesort', $sort_arr);



and replace to
Code:

            $sort_arr = array();
            $sort_arr['order_field'] = 'date';
            $sort_arr['order_direction'] = 'asc';
            $item_session->set('rem_housesort', $sort_arr);



Thanks,
OrdaSoft team
 
Logged Logged  
 
Last Edit: 2014/08/29 16:45 By admin.
  The administrator has disabled public write access.
#13476
dakadam (User)
Junior Boarder
Posts: 35
graphgraph
User Offline Click here to see the profile of this user
Re:Sorting statement: "alone_category/tmpl/list.php 2 Years, 1 Month ago Karma: 0  
I thank you very much!
I just changed 'htitle' to 'date' and that was it! In the File that was 3x.
It works!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?