В индексный файл шаблона сайта (.ru/templates/шаблон/index.php)
добавляем в самом начале после
1 | <? php |
1 2 3 4 5 6 7 8 9 10 11 12 13 | $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); if ($option=="com_content" && $view=="article") { $ids = explode(':',JRequest::getString('id')); $article_id = $ids[0]; $article =& JTable::getInstance("content"); $article->load($article_id); $article->get("title"); } $document = & JFactory::getDocument(); $config = & JFactory::getConfig(); $fulltitle = $article->get("title").' - '.$document->title; $document->setTitle( $fulltitle ); |