Answer the question
In order to leave comments, you need to log in
How to display the title of the joomla site through the template settings?
Tell me how to display the site title through the settings of the joomla template. I made the template myself and now I need to write an API function in index.php, but I don’t know which one. in templatedetails xml I created an item where you can specify the site title through the template setting, all that remains is the output function itself, tell me how to do this, thanks in advance!
Answer the question
In order to leave comments, you need to log in
// в начале файла index.php шаблона
$document = JFactory::getDocument();
$title = sprintf(
"%s :: %s",
$this->params->get('title-name-from-xml'),
$document->getTitle()
);
$document->setTitle($title);
<!-- Этот тэг выводит заголовки, скрипты, стили и прочее -->
<jdoc:include type="head" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question