Лучший Ответ SmetDenis , 26 May 2015 - 08:49
Попробуйте сделать так
В файле components\com_zoo\controllers\submission.php есть функция save()
В конце устанавливается ссылка для редиректа![]()
Перед этой строкой добавьте
$this->redirectTo = 'full';Далее замените функцию _getRedirectLink в том же файле
protected function _getRedirectLink()
{
// Check redirect link
switch ($this->redirectTo) {
case null:
// Check menu item for redirect
if ($menu = $this->app->menu->getActive()) {
if ($menu_item_id = $this->app->parameter->create($menu->params)->get('redirect', false)) {
return JRoute::_('index.php?Itemid=' . $menu_item_id, false);
}
}
return $this->app->route->submission($this->submission, $this->type->id, null, $this->item_id, $this->redirectTo);
case 'mysubmissions':
// redirect to list of submissions
return $this->app->route->mysubmissions($this->submission);
case 'full':
// redirect to full view
return $this->app->route->item($this->item);
case 'itemedit':
// Redirect to the item
if ($this->item->getState() == 1) {
return $this->app->route->item($this->item);
} else {
return $this->app->route->submission($this->submission, $this->type->id, null, $this->item_id);
}
default:
// Custom redirect
return base64_decode($this->redirectTo);
}
}
Без хаков в данном случае не получится.
Перейти к сообщению


Тема закрыта









