Quantcast
Channel: Phoca Forum
Viewing all articles
Browse latest Browse all 2001

Phoca Gallery • Re: Tag tittle

$
0
0

Code:

echo '<div class="page-header"><h1>'. $this->escape($heading);$pageTitle = $heading;if (isset($this->tagId) && $this->tagId != '') {    $db = JFactory::getDbo();    $tagQuery = $db->getQuery(true)        ->select($db->quoteName('title'))        ->from($db->quoteName('#__phocagallery_tags'))        ->where($db->quoteName('id') . ' = ' . (int)$this->tagId);    $db->setQuery($tagQuery);    $tagTitle = $db->loadResult();    if ($tagTitle) {        echo ' - ' . $this->escape($tagTitle);        $pageTitle = $this->escape($tagTitle) . ' - ' . $pageTitle;    }}echo '</h1></div>';JFactory::getDocument()->setTitle($pageTitle);
Thanks for the tip, it's a working option!

Statistics: Posted by ierofant — 03 Dec 2023, 13:57



Viewing all articles
Browse latest Browse all 2001

Trending Articles