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

Discussion in 'Изменение шаблона (кастомизация)' started by OlegK, May 17, 2020.

  1. OlegK
    Offline

    OlegK Russian Joomla! Team Staff Member ⇒ Профи ⇐

    Joined:
    Jan 17, 2011
    Messages:
    7,812
    Likes Received:
    771
    Gender:
    Male
    Разработчики 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 and Alekxandr like this.
  2.  

Share This Page

Loading...