ответ на уже закрытую тему
Эта проблема встречалась мне еще на Joomla 1.5 и соответствующей Zoo версией к ней.
вообщем проблема в следующем: некрасиво выглядит окошко JCE (в моем случаи) форма создания Item обрезает наш редактор контента
Лечим:
За эти 2 формы отвечает файл edit.php который лежит по пути "ваш сайт"\administrator\components\com_zoo\views\item\tmpl\
открываем его и меняем значения
41 строка <div class="col col-left width-60"> на 70
121 строка <div class="col col-right width-30"> на 30
код ниже уже затюненый "добро пожаловать копипаст"
и получаем вот такое и самое главное у нас на месте окошко с доп.опциями по ID элементу
<?php /** * @package com_zoo * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ defined('_JEXEC') or die('Restricted access'); $this->app->html->_('behavior.tooltip'); // Add chosen in Joomla 2.5 if ($this->app->joomla->isVersion('2.5')) { $this->app->document->addScript('libraries:jquery/plugins/chosen/chosen.jquery.min.js'); $this->app->document->addStylesheet('libraries:jquery/plugins/chosen/chosen.css'); } else { JHtml::_('formbehavior.chosen', '#categories'); JHtml::_('formbehavior.chosen', '#paramsprimary_category'); } // add script $this->app->document->addScript('assets:js/autosuggest.js'); $this->app->document->addScript('assets:js/item.js'); $this->app->document->addScript('assets:js/alias.js'); $this->app->document->addScript('assets:js/tag.js'); // filter output JFilterOutput::objectHTMLSafe($this->item, ENT_QUOTES, array('params', 'elements')); // Keepalive behavior JHTML::_('behavior.keepalive'); ?> <form class="item-edit" action="index.php" method="post" name="adminForm" id="adminForm" accept-charset="utf-8"> <?php echo $this->partial('menu'); ?> <div class="box-bottom"> <div class="col col-left width-70"> <fieldset class="creation-form"> <legend><?php echo JText::_('Details'); ?></legend> <div class="element element-name"> <strong><?php echo JText::_('Name'); ?></strong> <div id="name-edit"> <div class="row"> <input class="inputbox" type="text" name="name" id="name" size="60" value="<?php echo $this->item->name; ?>" /> <span class="message-name"><?php echo JText::_('Please enter valid name.'); ?></span> </div> <div class="slug"> <span><?php echo JText::_('Slug'); ?>:</span> <a class="trigger" href="#" title="<?php echo JText::_('Edit Item Slug');?>"><?php echo $this->item->alias; ?></a> <div class="panel"> <input type="text" name="alias" value="<?php echo $this->item->alias; ?>" /> <input type="button" class="accept" value="<?php echo JText::_('Accept'); ?>"/> <a href="#" class="cancel"><?php echo JText::_('Cancel'); ?></a> </div> </div> </div> </div> <div class="element element-published"> <strong><?php echo JText::_('Published'); ?></strong> <?php echo $this->lists['select_published']; ?> </div> <div class="element element-searchable"> <strong><?php echo JText::_('Searchable'); ?></strong> <?php echo $this->lists['select_searchable']; ?> </div> <div class="element element-comments"> <strong><?php echo JText::_('Comments'); ?></strong> <?php echo $this->lists['select_enable_comments']; ?> </div> <div class="element element-frontpage"> <strong><?php echo JText::_('Frontpage'); ?></strong> <?php echo $this->lists['select_frontpage']; ?> </div> <div class="element element-categories"> <strong><?php echo JText::_('Categories'); ?></strong> <?php echo $this->lists['select_categories']; ?> </div> <div class="element element-primary-category"> <strong><?php echo JText::_('Primary Category'); ?></strong> <?php echo $this->lists['select_primary_category']; ?> </div> <?php foreach ($this->item->getElements() as $element) { // trigger beforeEdit event $render = true; $this->app->event->dispatcher->notify($this->app->event->create($element, 'element:beforeedit', array('render' => &$render))); if ($render && $edit = $element->edit()) { $element->loadAssets(); // set label $name = JText::_($element->config->get('name')); if ($description = $element->config->get('description')) { $description = ' class="editlinktip hasTip" title="'.JText::_($description).'"'; } $html = array(); $html[] = '<div class="element element-'.$element->getElementType().'">'; $html[] = '<strong'.$description.'>'.$name.'</strong>'; $html[] = $edit; $html[] = '</div>'; // trigger afterEdit event $this->app->event->dispatcher->notify($this->app->event->create($element, 'element:afteredit', array('html' => &$html, 'description' => $description, 'name' => $name))); echo implode("\n", $html); } } ?> </fieldset> </div> <div class="col col-right width-30"> <table width="100%" class="infobox"> <?php if ($this->item->id) : ?> <tr> <td> <strong><?php echo JText::_('Item ID'); ?>:</strong> </td> <td> <?php echo $this->item->id; ?> </td> </tr> <?php endif; ?> <tr> <td> <strong><?php echo JText::_('Type'); ?></strong> </td> <td> <?php echo $this->item->getType()->name; ?> <input type="hidden" name="type" value="<?php echo $this->item->type; ?>" /> </td> </tr> <tr> <td> <strong><?php echo JText::_('State'); ?></strong> </td> <td> <?php echo $this->item->state > 0 ? JText::_('Published') : ($this->item->state < 0 ? JText::_('Archived') : JText::_('Draft Unpublished'));?> </td> </tr> <tr> <td> <strong><?php echo JText::_('Hits'); ?></strong> </td> <td> <?php echo $this->item->hits;?> <span <?php echo !$this->item->hits ? 'style="display: none; visibility: hidden;"' : null; ?>> <input name="reset_hits" type="button" class="button" value="<?php echo JText::_('Reset'); ?>" onclick="submitbutton('resethits');" /> </span> </td> </tr> <tr> <td> <strong><?php echo JText::_('Created'); ?></strong> </td> <td> <?php echo $this->item->created == null ? JText::_('New item') : $this->app->html->_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'), $this->app->date->getOffset()); ?> </td> </tr> <tr> <td> <strong><?php echo JText::_('Modified'); ?></strong> </td> <td> <?php echo $this->item->modified == null ? JText::_('Not modified') : $this->app->html->_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'), $this->app->date->getOffset()); ?> </td> </tr> <tr> <td> <strong><?php echo JText::_('Author'); ?></strong> </td> <td> <?php // author if ($author = $this->item->created_by_alias) { echo $author; } else if (($user = $this->app->user->get($this->item->created_by)) && $user->name) { echo $user->name; } else { echo JText::_('Guest'); } ?> </td> </tr> </table> <?php ; // get item xml form $form = $this->app->parameterform->create(dirname(__FILE__).'/params.xml'); // set details parameter $details = $this->app->parameter->create() ->set('created_by', $this->item->created_by == '' ? $this->app->user->get()->id : 'NO_CHANGE') ->set('access', $this->item->access) ->set('created_by_alias', $this->item->created_by_alias) ->set('created', $this->app->html->_('date', $this->item->created, 'Y-m-d H:i:s', true)) ->set('publish_up', $this->app->html->_('date', $this->item->publish_up, 'Y-m-d H:i:s', true)) ->set('publish_down', $this->app->html->_('date', $this->item->publish_down, 'Y', true) <= 1969 || $this->item->publish_down == $this->app->database->getNullDate() ? JText::_('Never') : $this->app->html->_('date', $this->item->publish_down, 'Y-m-d H:i:s', true)); ?> <div id="parameter-accordion"> <h3 class="toggler"><?php echo JText::_('Details'); ?></h3> <div class="content"> <?php echo $form->setValues($details)->render('details'); ?> </div> <h3 class="toggler"><?php echo JText::_('Metadata'); ?></h3> <div class="content"> <?php echo $form->setValues($this->params->get('metadata.'))->render('params[metadata]', 'metadata'); ?> </div> <?php $form = $this->application->getParamsForm()->setValues($this->params->get('content.')); ?> <?php if ($form->getParamsCount('item-content')) : ?> <h3 class="toggler"><?php echo JText::_('Content'); ?></h3> <div class="content"> <?php echo $form->render('params[content]', 'item-content'); ?> </div> <?php endif; ?> <?php $form = $this->application->getParamsForm()->setValues($this->params->get('config.')); ?> <?php if ($form->getParamsCount('item-config')) : ?> <h3 class="toggler"><?php echo JText::_('Config'); ?></h3> <div class="content"> <?php echo $form->render('params[config]', 'item-config'); ?> </div> <?php endif; ?> <?php $template = $this->application->getTemplate(); ?> <?php if ($template) : ?> <?php $form = $template->getParamsForm(true)->setValues($this->params->get('template.')); ?> <?php if ($form->getParamsCount('item')) : ?> <h3 class="toggler"><?php echo JText::_('Template'); ?></h3> <div class="content"> <?php echo $form->render('params[template]', 'item'); ?> </div> <?php endif; ?> <?php else: ?> <h3 class="toggler"><?php echo JText::_('Template'); ?></h3> <div class="content"> <em><?php echo JText::_('Please select a Template'); ?></em> </div> <?php endif; ?> <h3 class="toggler"><?php echo JText::_('Tags'); ?></h3> <div class="content"> <div id="tag-area"> <input type="text" value="<?php echo implode(', ', $this->item->getTags()); ?>" placeholder="<?php echo JText::_('Add new tag'); ?>" /> <p><?php echo JText::_('Choose from the most used tags');?>:</p> <?php if (count($this->lists['most_used_tags'])) : ?> <div class="tag-cloud"> <?php foreach ($this->lists['most_used_tags'] as $tag) :?> <a title="<?php echo $tag->items . ' ' . ($tag->items == 1 ? JText::_('item') : JText::_('items')); ?>"><?php echo $tag->name; ?></a> <?php endforeach;?> </div> <?php endif; ?> </div> </div> </div> </div> </div> <input type="hidden" name="option" value="<?php echo $this->option; ?>" /> <input type="hidden" name="controller" value="<?php echo $this->controller; ?>" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" /> <input type="hidden" name="cid[]" value="<?php echo $this->item->id; ?>" /> <input type="hidden" name="hits" value="<?php echo $this->item->hits; ?>" /> <input type="hidden" name="changeapp" value="<?php echo $this->application->id; ?>" /> <?php echo $this->app->html->_('form.token'); ?> </form> <script type="text/javascript"> jQuery(function($) { $('#adminForm').EditItem(); $('#name-edit').AliasEdit({ edit: <?php echo (int) $this->item->id; ?> }); $('#name-edit').find('input[name="name"]').focus(); $('#tag-area').Tag({ url: 'index.php?option=com_zoo&controller=item&format=raw&task=loadtags', addButtonText: '<?php echo JText::_('Add Tag'); ?>' }); <?php if ($this->app->joomla->isVersion('2.5')) : ?> $('#categories, #paramsprimary_category').chosen({ disable_search_threshold : 10, allow_single_deselect : true }); <?php endif; ?> // Add here since on 3.0 the options are hardcoded in the constructor of the PHP method $('#categories, #paramsprimary_category').data('chosen').search_contains = true; }); </script> <?php echo ZOO_COPYRIGHT;
так же такой файл существует для категорий! где тоже все не так и все не то!
"ваш сайт"\localhost\ritualka\administrator\components\com_zoo\views\category\tmpl\
<?php /** * @package com_zoo * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ defined('_JEXEC') or die('Restricted access'); $this->app->html->_('behavior.tooltip'); // Add chosen in Joomla 2.5 if ($this->app->joomla->isVersion('2.5')) { $this->app->document->addScript('libraries:jquery/plugins/chosen/chosen.jquery.min.js'); $this->app->document->addStylesheet('libraries:jquery/plugins/chosen/chosen.css'); } else { JHtml::_('formbehavior.chosen', '#parent'); } // add script $this->app->document->addScript('assets:js/alias.js'); $this->app->document->addScript('assets:js/category.js'); // filter output JFilterOutput::objectHTMLSafe($this->category, ENT_QUOTES, array('params')); // Keepalive behavior JHTML::_('behavior.keepalive'); ?> <form action="index.php" method="post" name="adminForm" id="adminForm" accept-charset="utf-8"> <?php echo $this->partial('menu'); ?> <div class="box-bottom"> <div class="col col-left width-70"> <fieldset class="creation-form"> <legend><?php echo JText::_('Details'); ?></legend> <div class="element element-name"> <strong><?php echo JText::_('Name'); ?></strong> <div id="name-edit"> <div class="row"> <input class="inputbox" type="text" name="name" id="name" size="60" value="<?php echo $this->category->name; ?>" /> <span class="message-name"><?php echo JText::_('Please enter valid name.'); ?></span> </div> <div class="slug"> <span><?php echo JText::_('Slug'); ?>:</span> <a class="trigger" href="#" title="<?php echo JText::_('Edit Category Slug');?>"><?php echo $this->category->alias; ?></a> <div class="panel"> <input type="text" name="alias" value="<?php echo $this->category->alias; ?>" /> <input type="button" class="accept" value="<?php echo JText::_('Accept'); ?>"/> <a href="#" class="cancel"><?php echo JText::_('Cancel'); ?></a> </div> </div> </div> </div> <div class="element element-published"> <strong><?php echo JText::_('Published'); ?></strong> <?php echo $this->lists['select_published']; ?> </div> <div class="element element-parent-item"> <strong><?php echo JText::_('Parent Category'); ?></strong> <?php echo $this->lists['select_parent']; ?> </div> <div class="element element-description"> <strong><?php echo JText::_('Description'); ?></strong> <div> <?php // parameters : areaname, content, width, height, cols, rows, show xtd buttons echo $this->app->system->editor->display('description', $this->category->description, null, null, '60', '20', array('pagebreak', 'readmore', 'article')) ; ?> </div> </div> </fieldset> </div> <div class="col col-right width-30"> <div id="parameter-accordion"> <?php $form = $this->application->getParamsForm()->setValues($this->params->get('content.')); ?> <?php if ($form->getParamsCount('category-content')) : ?> <h3 class="toggler"><?php echo JText::_('Content'); ?></h3> <div class="content"> <?php echo $this->application->getParamsForm()->setValues($this->params->get('content.'))->render('params[content]', 'category-content'); ?> </div> <?php endif; ?> <?php $form = $this->application->getParamsForm()->setValues($this->params->get('config.')); ?> <?php if ($form->getParamsCount('category-config')) : ?> <h3 class="toggler"><?php echo JText::_('Config'); ?></h3> <div class="content"> <?php echo $this->application->getParamsForm()->setValues($this->params->get('config.'))->render('params[config]', 'category-config'); ?> </div> <?php endif; ?> <?php $template = $this->application->getTemplate(); ?> <?php if ($template) : ?> <?php $form = $template->getParamsForm(true)->setValues($this->params->get('template.')); ?> <?php if ($form->getParamsCount('category')) : ?> <h3 class="toggler"><?php echo JText::_('Template'); ?></h3> <div class="content"> <?php echo $form->render('params[template]', 'category'); ?> </div> <?php endif; ?> <?php else: ?> <h3 class="toggler"><?php echo JText::_('Template'); ?></h3> <div class="content"> <em><?php echo JText::_('Please select a Template'); ?></em> </div> <?php endif; ?> <?php $form = $this->app->parameterform->create(dirname(__FILE__).'/params.xml'); ?> <h3 class="toggler"><?php echo JText::_('Metadata'); ?></h3> <div class="content"> <?php echo $form->setValues($this->params->get('metadata.'))->render('params[metadata]', 'metadata'); ?> </div> </div> </div> </div> <input type="hidden" name="option" value="<?php echo $this->option; ?>" /> <input type="hidden" name="controller" value="<?php echo $this->controller; ?>" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?php echo $this->category->id; ?>" /> <input type="hidden" name="cid[]" value="<?php echo $this->category->id; ?>" /> <input type="hidden" name="changeapp" value="<?php echo $this->application->id; ?>" /> <?php echo $this->app->html->_('form.token'); ?> </form> <script type="text/javascript"> jQuery(function($) { $('#adminForm').EditCategory(); $('#name-edit').AliasEdit({ edit: <?php echo (int) $this->category->id; ?> }); $('#name-edit').find('input[name="name"]').focus(); <?php if ($this->app->joomla->isVersion('2.5')) : ?> $('#parent').chosen({ disable_search_threshold : 10, allow_single_deselect : true }); <?php endif; ?> // Add here since on 3.0 the options are hardcoded in the constructor of the PHP method $('#parent').data('chosen').search_contains = true; }); </script> <?php echo ZOO_COPYRIGHT;
код уже затюнен! "привет копипаст"
FIN
Приятной работы комратс!
ЗЫ прилипли 2 файла 70% на 30%
- "ваш сайт"\administrator\components\com_zoo\views\category\tmpl\
- "ваш сайт"\administrator\components\com_zoo\views\item\tmpl\
Attached Files
Edited by feedmy.name, 27 February 2014 - 12:34.