Image name in browser title in detail view
Posted: 24 Jul 2013, 19:25
How to display image name in browser title in detail view. I get only category name in browser title, but I need image name.
Support for Phoca Extensions
https://www.phoca.cz/forum/
YesJan wrote:Hi, do you run it with Options: Detail Window "No Popup"?
Code: Select all
$title = $this->params->get('page_title', '');
if (empty($title)) {
$title = htmlspecialchars_decode($app->getCfg('sitename'));
} else if ($app->getCfg('sitename_pagetitles', 0)) {
$title = JText::sprintf('JPAGETITLE', htmlspecialchars_decode($app->getCfg('sitename')), $title);
}
if (isset($item->title) && $item->title != '') {
$title = $title .' - ' . $item->title;
}
$this->document->setTitle($title);