A solution:
this is with State, but is similar with Locality
modify 2 files:
in administrator/components/com_properties/elements/state.php (the other file is locality.php)
found at the end of file the similar follow lines and reemplace with:
| Code: |
JHTML::_('behavior.modal', 'a.modal');
// $html = "\n".'<div style="float: left;"><input style="background: #ffffff;" type="text" id="'.$name.'_name" value="'.htmlspecialchars($article->title, ENT_QUOTES, 'UTF-8').'" disabled="disabled" /></div>';
// $html .= "\n <input class=\"inputbox modal-button\" type=\"button\" value=\"".JText::_('Select')."\" />";
// $html .= '<div class="button2-left"><div class="blank"><a class="modal" title="'.JText::_('Select an State').'" href="'.$link.'" rel="{handler: \'iframe\', size: {x: 750, y: 475}}">'.JText::_('Select').'</a></div></div>'."\n";
$html .= "\n".'<input id="'.$name.'_id" name="'.$fieldName.'" value="'.(int)$value.'" />';
|
second file:
components/com_properties/views/properties/tmpl/default.xml
after of:
| Code: |
<param name="tid" type="type" default="" label="Select type" description="An type" />
|
add
| Code: |
<param name="sid" type="state" default="" label="put id of State" description="An state" />
|
Regards