how to fix sorting in extended search (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: how to fix sorting in extended search
|
|
|
|
how to fix sorting in extended search 1 Year, 4 Months ago
|
Karma: 1
|
Hi, you might have notice that sorting does not work in extended search. To fix it do this in components/com_estateagent/estateagent.php (line 860 or so).
Replace this existing code:
| Code: |
$sort1[] = mosHTML::makeOption( ' rent', _EA_OBJ_RENT );
$sort1[] = mosHTML::makeOption( ' price', _EA_OBJ_PRICE );
$sort1[] = mosHTML::makeOption( ' space', _EA_OBJ_DWSPACE );
$sort1[] = mosHTML::makeOption( ' rooms', _EA_OBJ_ROOMNR );
$sort1[] = mosHTML::makeOption( ' bedrooms', _EA_OBJ_BEDROOMS );
$sort1[] = mosHTML::makeOption( ' yobuilt', _EA_OBJ_YOBUILT );
|
With this new code:
| Code: |
$sort1[] = mosHTML::makeOption( 'ORDER BY rent', _EA_OBJ_RENT );
$sort1[] = mosHTML::makeOption( 'ORDER BY price', _EA_OBJ_PRICE );
$sort1[] = mosHTML::makeOption( 'ORDER BY space', _EA_OBJ_DWSPACE );
$sort1[] = mosHTML::makeOption( 'ORDER BY rooms', _EA_OBJ_ROOMNR );
$sort1[] = mosHTML::makeOption( 'ORDER BY bedrooms', _EA_OBJ_BEDROOMS );
$sort1[] = mosHTML::makeOption( 'ORDER BY yobuilt', _EA_OBJ_YOBUILT );
|
Regards, Rafael.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:how to fix sorting in extended search 1 Year, 4 Months ago
|
Karma: 1
|
|
However, this ordering (sorting) only works for the first page of results. When there is more than one page of results, the sorting is lost when navigating between them.
For example:
<< Start < Prev [1] 2 Next > End >>
Only the first page, and the first time, gets the results ordered. If I navigate through the results pages the ordering is lost, even in when returning to the same page again. Anyone knows how to solve this?
Regards, Rafael.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
Web Jeb (User)
Expert Boarder
Posts: 99
|
|
Re:how to fix sorting in extended search 1 Year, 2 Months ago
|
Karma: 0
|
|
in my EA1011 SAME PROBLEM >>> dont know how to fix it ... rather important issue !!!
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:how to fix sorting in extended search 4 Weeks, 1 Day ago
|
Karma: 0
|
I have got the same problem .... anyone have a solution, please ??

|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|