RomanL - где же Вы??!!!
я решила пойти по другому пути и создать элемент не внутри JBZoo а в элементах Zoo
оно отобразилось в Форма - если просто скопировать элемент текст поменяв text на cominfo
однако мне не нужно еще одно поле текста, следуя вот этой инструкции
http://www.yootheme....-custom-element
я создала нужный мне аналог прописав в xml
<params>
</params>
<params group="render">
</params>
а в php файл следующее
<?php
/**
* @package com_zoo
* @author YOOtheme [url]http://www.yootheme.com[/url]
* @copyright Copyright (C) YOOtheme GmbH
* @license [url]http://www.gnu.org/licenses/gpl.html[/url] GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// register ElementRepeatable class
App::getInstance('zoo')->loader->register('ElementRepeatable', 'elements:repeatable/repeatable.php');
class ElementCominfo extends Element {
public function edit() {
}
}
public function edit() {
$html = array();
$html[] = $this->app->html->_('control.editrow', JText::_('zCountry'), $this->app->html->_('control.text', $this->getControlName('zcountry'), $this->get('zcountry'), 'size="60" maxlength="255"'));
$html[] = $this->app->html->_('control.editrow', JText::_('zCity'), $this->app->html->_('control.text', $this->getControlName('zcity'), $this->get('zcity'), 'size="60" maxlength="255"'));
$html[] = $this->app->html->_('control.editrow', JText::_('zOfficeAddress'), $this->app->html->_('control.text', $this->getControlName('zofficeaddress'), $this->get('zofficeaddress'), 'size="60" maxlength="255"'));
$html[] = $this->app->html->_('control.editrow', JText::_('zWarehouseAddress'), $this->app->html->_('control.text', $this->getControlName('zwarehouseaddress'), $this->get('zwarehouseaddress'), 'size="60" maxlength="255"'));
$html[] = $this->app->html->_('control.editrow', JText::_('zPhone'), $this->app->html->_('control.text', $this->getControlName('zphone'), $this->get('zphone'), 'size="60" maxlength="255"'));
$html[] = $this->app->html->_('control.editrow', JText::_('zEmail'), $this->app->html->_('control.text', $this->getControlName('zemail'), $this->get('zemail'), 'size="60" maxlength="255"'));
return implode("\n", $html);
}
public function render($params = array()) {
return $this->get('zcountry') . ', ' . $this->get('zcity') . ', ' .$this->get('zofficeaddress') . ', ' .$this->get('zwarehouseaddress') . ', ' .$this->get('zphone') . ', ' .$this->get('zemail');
}
public function hasValue($params = array()) {
$street = $this->get('zcountry');
$zip = $this->get('zcity');
$country = $this->get('zofficeaddress');
$country = $this->get('zwarehouseaddress');
$country = $this->get('zphone');
$country = $this->get('zemail');
return !empty($zcountry) ||!empty($zcity) ||($zofficeaddress) ||($zwarehouseaddress) ||($zphone) ||($zemail);
}
сохранила
вот эта страница Риэлтор [ Редактировать поля ]
перестала открываться, там просто чистая (белая) страницаё
(в принципе закладка редактировать поля в любом шаблоне не открывается)
где именно у меня ошибка, почему так происходит?