OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Add fields in The add house form (0 viewing) 

Joomla Real Estate

Go to bottom Favoured: 0

Add fields in The add house form

enricaGe (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Add fields in The add house form 11 Years, 11 Months ago
Karma: 0  
Hi, for the real estate web site I need more fields about The house.
I add those fields in the table rem_house and I add the fields in The add house form. How do for save The information in The table?
Thank's you very much
Enrica
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8361
graph
User Offline Click here to see the profile of this user
Re:Add fields in The add house form 11 Years, 11 Months ago
Karma: 102  
Hello Enrica,

There are exist file:
{yours site}/components/com_realestatemanager/realestatemanager.class.php

there are exist class "mosRealEstateManager" - in it all variables - exactly like fields in table rem_house.
So you need check this class and add all fields there are also.

after that start work all atandart method for save like:


$house = new mosRealEstateManager($database);
$house->bind($post) ;
$house->store();

please check function saveHouse and editHouse in file:
{yours site}/administrator/components/com_realestatemanager/admin.realestatemanager.php

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
enricaGe (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Add fields in The add house form 11 Years, 11 Months ago
Karma: 0  
Thank's you for your fantastic support, I have two questions and the site is finished

1. I added a new fields in the search form, but does not work. In the file
{yours site} / components / com_realestatemanager / admin.realestatemanager.php
I found the function showSearchHouses and searchHouses. Which of the two functions I should changed for make a select in the db and retrieved the houses in the criteria?

2. I should add the house's videos. It's necessary add the new logic for video or If I change if I change the supported extensions and also add avi, say in the pictures should be fine?
Thanks for your patience but it is many years since I program with php
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8361
graph
User Offline Click here to see the profile of this user
Re:Add fields in The add house form 11 Years, 11 Months ago
Karma: 102  
Hello,

1. I added a new fields in the search form, but does not work. In the file
{yours site} / components / com_realestatemanager / admin.realestatemanager.php
I found the function showSearchHouses and searchHouses. Which of the two functions I should changed for make a select in the db and retrieved the houses in the criteria?

You may check end every function - with hat you will see what at result they do.
In yours case you need edit searchHouses.



2. I should add the house's videos. It's necessary add the new logic for video or If I change if I change the supported extensions and also add avi, say in the pictures should be fine?
Ours component support many module positions - so you may build some video plugin to some that position.
Also Real estate manager support include Plugins to property description - so you may add Video Plugins to property with help that

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»