OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
change page layout of the search result page (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Change page layout of the search result page

nomeitalia (User)
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
change page layout of the search result page 10 Years, 3 Months ago
Karma: 0  
hello, how can I change the page of the search result and make it like in the attached image?
thanks
Giuseppe
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8230
graph
User Offline Click here to see the profile of this user
Re:change page layout of the search result page 10 Years, 3 Months ago
Karma: 101  
Hello

Please open file:

file:///home/andrew/public_html/joomla_30/plugins/search/realestatemanagersearch_j3/realestatemanagersearch_j3.php

find code look like:

Code:

    function onContentSearchAreas(){
        static $areas = array('realestateman' => 'RealEstate Manager');
        return $areas;
    }

    public function onSearchAreas(){ // We get here when input box [RealEstate Manager] was enabled
        static $areas = array('realestateman' => 'RealEstateManager');
        return $areas;
    }



and replace to:
Code:

    function onContentSearchAreas(){
        static $areas = array('realestateman' => 'Your name');
        return $areas;
    }

    public function onSearchAreas(){ // We get here when input box [RealEstate Manager] was enabled
        static $areas = array('realestateman' => 'Your name');
        return $areas;
    }




and

Code:

        $query = "SELECT h.htitle AS title, h.date AS created, h.description  AS text ,"
                ." CONCAT( 'index.php?option=com_realestatemanager"
                ."&task=view&id=', h.id,'&catid=', c.id,'&Itemid=', $ItemId) AS href,"
                ." '2' AS browsernav, 'RealEstateManager' AS section, c.title AS category"
                ." FROM #__rem_houses AS h "
                ." LEFT JOIN #__rem_categories AS hc ON h.id=hc.iditem "
                ." LEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat "
                ." WHERE h.published = '1' AND ($s)"
                ." AND $where GROUP BY h.id $order";



to
Code:

        $query = "SELECT h.htitle AS title, h.date AS created, h.description  AS text ,"
                ." CONCAT( 'index.php?option=com_realestatemanager"
                ."&task=view&id=', h.id,'&catid=', c.id,'&Itemid=', $ItemId) AS href,"
                ." '2' AS browsernav, 'Your text' AS section, c.title AS category"
                ." FROM #__rem_houses AS h "
                ." LEFT JOIN #__rem_categories AS hc ON h.id=hc.iditem "
                ." LEFT JOIN #__rem_main_categories AS c ON c.id=hc.idcat "
                ." WHERE h.published = '1' AND ($s)"
                ." AND $where GROUP BY h.id $order";





Please backup that file first

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
nomeitalia (User)
Senior Boarder
Posts: 42
graphgraph
User Offline Click here to see the profile of this user
Re:change page layout of the search result page 10 Years, 3 Months ago
Karma: 0  
ok
Thank you
Logged Logged
The administrator has disabled public write access.
Go to top
»