Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • winbelltrade Friend
    #872676

    I want to enable a (Position Right) all through the template to accommodate adverts but I don’t understand how it could be achieved after reading the template documentation. I am scared to attempt changes that will disrupt the entire structure of the template. Could you please help me to realize this. See the attached image


    1. Position-Right-for-adverts
    Adam M Moderator
    #873355

    Hi @winbelltrade,

    Please navigate to backend >>> Menus >>> Main Menu >>> Home >>> currently the menu item is assigned with template style ja_directory – Feature. This style doesn’t have left / right sidebar so try to change the Template Style to Use Default and recheck.

    winbelltrade Friend
    #874043

    I have applied your recommendation but instead of showing the right position the whole directory portion (section 1) does not show again but only section 2. Could you check ityourself.

    Adam M Moderator
    #875151

    Hi @winbelltrade,

    I created new template style ja_directory – Home and assign to page home. Currently the position section-1 stay above the body section (left column / component / right column) so you will have to create new position and place it on top of component part.

    Open file templates/ja_directory/tpls/blocks/mainbody/one-sidebar-left.php and look for this code :

    <?php if($this->hasMessage()) : ?>

    then update as below :

    <?php if ($this->countModules('section-3')) : ?>
      <!-- SECTION 3 -->
      <section class="wrap t3-section t3-section-3 <?php $this->_c('section-3') ?>">
          <jdoc:include type="modules" name="<?php $this->_p('section-3') ?>" style="raw"/>
      </section>
      <!-- //SECTION 3 -->
    <?php endif ?>
    <?php if($this->hasMessage()) : ?>

    replicate to file one-sidebar-right.php and two-sidebar.php as well. Last step is to move some module from position section-1 to section-3 to suite your need.

    winbelltrade Friend
    #889314

    I followed your recommended action step by step and it could not create the position on the right as I wanted for the adverts. Also the position "section-3" does not exist on the template to move some modules to. I need further assistance please.

    Adam M Moderator
    #889581

    Hi @winbelltrade,

    Please provide a temporary FTP account via private reply, I will modify this part for you.

    winbelltrade Friend
    #889601
    This reply has been marked as private.
    Adam M Moderator
    #890179

    Hi @winbelltrade,

    Look like the information is not correct, could you please recheck the FTP account ?

    winbelltrade Friend
    #890193
    This reply has been marked as private.
    Adam M Moderator
    #890954

    Hi @winbelltrade,

    The position section-3 is not ready to be used. In case you want to refer later, I changed 3 files as mentioned above :

    • templates/ja_directory/tpls/blocks/mainbody/one-sidebar-left.php
    • templates/ja_directory/tpls/blocks/mainbody/one-sidebar-right.php
    • templates/ja_directory/tpls/blocks/mainbody/two-sidebar.php

    Next, in addition to select position section-3, open file templates/ja_directory/templateDetails.xml and add this line :

    <position>section-2</position>

    duplicate it and name section-3 instead.

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 9 replies, has 2 voices, and was last updated by  Adam M 8 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum