К сожалению подходит только к версии 2.4 а к 2.3 не подходит.
Прошу помочь. Готов заплатить.
1) В файле \administrator\components\com_zoo\controllers\submission.php после кода
$this->lists['select_tooltip'] = $this->app->html->_('select.booleanlist', 'params[show_tooltip]', null, $this->submission->showTooltip());
добавляем
$this->lists['select_frontpage'] = $this->app->html->_('select.booleanlist', 'params[select_frontpage]', null, $this->submission->showFrontpage());
В этом же файле код
$submission->getParams()
->clear()
->set('form.', @$post['params']['form'])
->set('trusted_mode', @$post['params']['trusted_mode'])
->set('show_tooltip', @$post['params']['show_tooltip'])
->set('email_notification', @$post['params']['email_notification']);
заменяем на
$submission->getParams()
->clear()
->set('form.', @$post['params']['form'])
->set('trusted_mode', @$post['params']['trusted_mode'])
->set('show_tooltip', @$post['params']['show_tooltip'])
->set('email_notification', @$post['params']['email_notification'])
->set('select_frontpage', @$post['params']['select_frontpage']);
2) В файле \administrator\components\com_zoo\views\submission\tmpl\edit.php после строк
<div class="element element-tooltip">
<strong><?php echo JText::_('Tooltip'); ?></strong>
<?php echo $this->lists['select_tooltip']; ?>
</div>
добавляем
<div class="element element-frontpage">
<strong><?php echo JText::_('Frontpage'); ?></strong>
<?php echo $this->lists['select_frontpage']; ?>
</div>
3) В файле \administrator\components\com_zoo\classes\submission.php после строк
public function showTooltip() {
return (bool) $this->getParams()->get('show_tooltip', true);
}
добавляем
public function showFrontpage() {
return (bool) $this->getParams()->get('select_frontpage', true);
}
4)В файле \components\com_zoo\controllers\submission.php после кода
// set tags
$tags = $form->hasError('tags')? $form->getTaintedValue('tags') : $form->getValue('tags');
$this->item->setTags($tags);
} else {
вставляем
if ($this->submission->showFrontpage()) {
$categories[] = 0;
}
5)Идем в настройки нужной подачи материалов и переключаем параметр "Титульная страница" в "да"