Deutsches Support Forum
I need more text filds i details of property. I know how to change names of filds but there is not enough with text! Please can You write some small manual, how to add new text filds. I am needed, becouse my company have our own form to add property.
18.05.2009 20:18
Hi eltommo,

The only solution I can offer you for now, is to ask for a proposal via email or to wait for the upcoming ME. It will be possible to add individual fields in the future then.
best regards,
Darko
I´m very sorry, but I do not have the time for a how-to like this, because there´s no easy way and therefore it would end in a how-to for "How can I code a Joomla extension".Zitat:
Please can You write some small manual, how to add new text filds.
The only solution I can offer you for now, is to ask for a proposal via email or to wait for the upcoming ME. It will be possible to add individual fields in the future then.
best regards,
Darko
[Zuletzt bearbeitet admin, 18.05.2009 23:35]
18.05.2009 23:33
I added new filds in the database (text1, text2, text3 (...),text10), such as toheat.
Then I changed files admin.misterestate.html.php and polish-attributes.php.
I added in admin.misterestate.html.php:
<div class="tr2">
<div class="td1"><b><?php echo _TEXT1; ?></b></div>
<div class="td2"><input type="Text" name="text1" size="15" class="inputbox" maxlength="50" value="<?php echo $obj->text1; ?>" /></div>
<div class="td1"><b><?php echo _TEXT2; ?></b></div>
<div class="td2"><input type="Text" name="text2" size="15" class="inputbox" maxlength="50" value="<?php echo $obj->text2; ?>" /></div>
</div>
For text3,... the same.
In polish-attributes.php I defined:
DEFINE("_TEXT1","Ilość kondygnacji");
DEFINE("_TEXT2","Dojazd");
DEFINE("_TEXT3","Okna");
DEFINE("_TEXT4","Wyposażenie w instalacje");
DEFINE("_TEXT5","Przeznaczenie działki");
DEFINE("_TEXT6","Typ budynku");
Results:
It looks ok in backend but, everything I add it disappears.
Which files I need to edit?
Then I changed files admin.misterestate.html.php and polish-attributes.php.
I added in admin.misterestate.html.php:
<div class="tr2">
<div class="td1"><b><?php echo _TEXT1; ?></b></div>
<div class="td2"><input type="Text" name="text1" size="15" class="inputbox" maxlength="50" value="<?php echo $obj->text1; ?>" /></div>
<div class="td1"><b><?php echo _TEXT2; ?></b></div>
<div class="td2"><input type="Text" name="text2" size="15" class="inputbox" maxlength="50" value="<?php echo $obj->text2; ?>" /></div>
</div>
For text3,... the same.
In polish-attributes.php I defined:
DEFINE("_TEXT1","Ilość kondygnacji");
DEFINE("_TEXT2","Dojazd");
DEFINE("_TEXT3","Okna");
DEFINE("_TEXT4","Wyposażenie w instalacje");
DEFINE("_TEXT5","Przeznaczenie działki");
DEFINE("_TEXT6","Typ budynku");
Results:
It looks ok in backend but, everything I add it disappears.
Which files I need to edit?
[Zuletzt bearbeitet eltommo, 24.05.2009 23:30]
24.05.2009 23:19
Hi,
I´m very sorry - but there´s no easy way to ADD more fields in an easy way at this stage, because there are several classes involved.
If you want to customize it on your own, check the following files: misterestate.php, class.misterestate.php, misterestate.html.php, template.class.php and details.php
A more flexible solution, which will give users the freedom to define own fields and types is on the way. But I can´t promise, if I will accomplish it within the next or next but one release.
best regards,
Darko
I´m very sorry - but there´s no easy way to ADD more fields in an easy way at this stage, because there are several classes involved.
If you want to customize it on your own, check the following files: misterestate.php, class.misterestate.php, misterestate.html.php, template.class.php and details.php
A more flexible solution, which will give users the freedom to define own fields and types is on the way. But I can´t promise, if I will accomplish it within the next or next but one release.
best regards,
Darko
25.05.2009 12:35
Easy
There are three files to change:
1. admin.misterestate.html.php
2. polish-attributes.php
3. class.misterestate.php
In class.misterestate.php add:
class MEObject extends mosDBTable
var $text1 = '';
var $text2 = '';
var $text3 = '';
var $text4 = '';
var $text5 = '';
var $text6 = '';
and
$standard = array
_TEXT1 => $this->text1,
_TEXT2 => $this->text2,
_TEXT3 => $this->text3,
_TEXT4 => $this->text4,
_TEXT5 => $this->text5,
_TEXT6 => $this->text6,
And Joomla do the rest
Greatl!!!
Thanks for your advice!!!
There are three files to change:
1. admin.misterestate.html.php
2. polish-attributes.php
3. class.misterestate.php
In class.misterestate.php add:
class MEObject extends mosDBTable
var $text1 = '';
var $text2 = '';
var $text3 = '';
var $text4 = '';
var $text5 = '';
var $text6 = '';
and
$standard = array
_TEXT1 => $this->text1,
_TEXT2 => $this->text2,
_TEXT3 => $this->text3,
_TEXT4 => $this->text4,
_TEXT5 => $this->text5,
_TEXT6 => $this->text6,
And Joomla do the rest
Greatl!!!
Thanks for your advice!!!
[Zuletzt bearbeitet eltommo, 27.05.2009 09:34]
27.05.2009 00:12
Hi eltommo,
But I would recommend you this solution only, if you are the only one who´s using ME on your website. Because there´s no validation of the field values and one could hack or damage your website this way.
But anyway, congratulations for your solution.
best regards,
Darko
ok, I award you the title "supreme MisterEstate hacker".Zitat:
Easy![]()
But I would recommend you this solution only, if you are the only one who´s using ME on your website. Because there´s no validation of the field values and one could hack or damage your website this way.
But anyway, congratulations for your solution.
best regards,
Darko
[Zuletzt bearbeitet admin, 27.05.2009 14:13]
27.05.2009 14:13




