Joomla 3.x Добавление позиций перед и после компонента в Helix3

Тема в разделе "Изменение шаблона (кастомизация)", создана пользователем OlegK, 17.05.2020.

  1. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Разработчики Helix3 сказали что добавят , но пока рецепт от них- изменить код .
    Добавить в templateDetails.xml
    Код (html):
    1. <position>above</position>
    2.   <position>below</position>

    И потом в файл плагина /plugins/system/helix3/layouts/frontend/componentarea.php
    Код (PHP):
    1. $output .= '<div id="sp-component" class="' . $data->className . '">';
    2.  
    3. $output .= '<div class="sp-column ' . ($data->settings->custom_class) . '">';
    4. $output .= '<jdoc:include type="message" />';
    5. $output .= '<jdoc:include type="modules" name="above" style="sp_xhtml" />';
    6. $output .= '<jdoc:include type="component" />';
    7. $output .= '<jdoc:include type="modules" name="below" style="sp_xhtml" />';
    8. $output .= '</div>';
    9.  
    10. $output .= '</div>';
     
    joomguru, Asylum и Alekxandr нравится это.
  2.  

Поделиться этой страницей

Загрузка...