It turned out that you can still do without a query to the database ...
It was enough in
templates/my_template/html/layouts/joomla/content/info_block
create 2 files:
1) category_title.php, in which to register it:
<?php defined('JPATH_BASE') or die; echo $this->escape($displayData['item']->category_title); ?>
2) publish_date_no_html.php, in which to register it:
<?php defined('JPATH_BASE') or die; echo JHtml::_('date', $displayData['item']->publish_up, JText::_('DATE_FORMAT_LC2')); ?>
and in blog_item.php add:
$cat_name = JLayoutHelper::render('joomla.content.info_block.category_title', array('item' => $this->item)); $art_publish_date = JLayoutHelper::render('joomla.content.info_block.publish_date_no_html', array('item' => $this->item)); JRequest::setVar('cat_name', $cat_name, 'post'); //задаем глобальную переменную JRequest::setVar('art_publish_date', $art_publish_date, 'post'); //задаем глобальную переменную
and already in intro_image.php, add this:
$cat_name = JRequest::getVar('cat_name', '', 'post'); //считываем глобальную переменную $art_publish_date = JRequest::getVar('art_publish_date', '', 'post'); //считываем глобальную переменную
and in the right place, through echo to display the category name and the date of publication of the material ...