How To: Мета-теги информационной системы как в HostCMS v.5

Изменения вносятся в код настроек типовой динамической страницы информационных систем:

<?php

$oInformationsystem = Core_Entity::factory('Informationsystem', Core_Array::get(Core_Page::instance()->libParams, 'informationsystemId'));

$Informationsystem_Controller_Show = new Informationsystem_Controller_Show($oInformationsystem);

$Informationsystem_Controller_Show
   ->limit(Core_Array::get(Core_Page::instance()->libParams, 'itemsOnPage'))
   ->parseUrl();

// Текстовая информация для указания номера страницы, например "страница"
$pageName = Core_Array::get(Core_Page::instance()->libParams, 'page')
   ? Core_Array::get(Core_Page::instance()->libParams, 'page')
   : 'страница';

// Разделитель в заголовке страницы
$pageSeparator = Core_Array::get(Core_Page::instance()->libParams, 'separator')
   ? Core_Page::instance()->libParams['separator']
   : ' / ';

if ($Informationsystem_Controller_Show->group)
{
   $oInformationsystem_Group = Core_Entity::factory('Informationsystem_Group', $Informationsystem_Controller_Show->group);

   Core_Page::instance()->title($oInformationsystem_Group->seo_title != ''
         ? $oInformationsystem_Group->seo_title
         : $oInformationsystem_Group->name);
   Core_Page::instance()->description($oInformationsystem_Group->seo_description != ''
         ? $oInformationsystem_Group->seo_description
         : $oInformationsystem_Group->name);
   Core_Page::instance()->keywords($oInformationsystem_Group->seo_keywords != ''
         ? $oInformationsystem_Group->seo_keywords
         : $oInformationsystem_Group->name);
}

if ($Informationsystem_Controller_Show->item)
{
   $oInformationsystem_Item = Core_Entity::factory('Informationsystem_Item', $Informationsystem_Controller_Show->item);

   Core_Page::instance()->title($oInformationsystem_Item->seo_title != ''
         ? $oInformationsystem_Item->seo_title
         : $oInformationsystem_Item->name);
   Core_Page::instance()->description($oInformationsystem_Item->seo_description != ''
         ? $oInformationsystem_Item->seo_description
         : $oInformationsystem_Item->name);
   Core_Page::instance()->keywords($oInformationsystem_Item->seo_keywords != ''
         ? $oInformationsystem_Item->seo_keywords
         : $oInformationsystem_Item->name);
}

Core_Page::instance()->object = $Informationsystem_Controller_Show;

Не нашли ответ на свой вопрос в документации? Направьте обращение в службу поддержки или онлайн чат.