Image name in browser title in detail view
-
tvsat
- Phoca Newbie

- Posts: 2
- Joined: 24 Jul 2013, 19:12
Image name in browser title in detail view
How to display image name in browser title in detail view. I get only category name in browser title, but I need image name.
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Image name in browser title in detail view
Hi, do you run it with Options: Detail Window "No Popup"?
If you find Phoca extensions useful, please support the project
-
tvsat
- Phoca Newbie

- Posts: 2
- Joined: 24 Jul 2013, 19:12
Re: Image name in browser title in detail view
YesJan wrote:Hi, do you run it with Options: Detail Window "No Popup"?
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Image name in browser title in detail view
Hi, hmmm,
there should be normally displayed a title:
there should be normally displayed a title:
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);If you find Phoca extensions useful, please support the project