test melih
 melih
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Saguaros Moderator
    #968634

    Hi

    You can follow this way:

    • Go to file: ROOT/templates/ja_fixel/templateDetails.xml
      Add a new position, ex. slideshow under tag

      <position>slideshow</position>
    • Create a new block:

    Go to directory: ROOT/templates/ja_fixel/tpls/blocks/
    Create a new PHP file called slideshow.php
    Put the code below inside this new file:

    <?php
    defined('_JEXEC') or die;
    ?>
    
    <?php if ($this->countModules('slideshow')) : ?>
    <!-- Slideshow -->
    <div class="ja-slideshow <?php $this->_c('slideshow') ?>">
        <jdoc:include type="modules" name="<?php $this->_p('slideshow') ?>" style="raw" />
    </div>
    <!-- //Slideshow -->
    <?php endif ?>
    
    • Next, load this new slideshow block in home layout
      Open the file: ROOT/templates/ja_fixel/tpls/home.php ( I assume you use this ‘home’ layout, if you use other layout, you should edit associated file)
      Add a new line of code to call slideshow block as below:

      
      <body class=&quot;<?php echo $resClass ?>&quot;></li>
      </ul>
      <p><?php $this->loadBlock ('header') ?></p>
      <p><?php $this->loadBlock ('slideshow') ?></p>
      <p><?php $this->loadBlock ('home') ?></p>
      <p><?php $this->loadBlock ('footer') ?></p>
      <p><?php $this->loadBlock ('popup') ?>
      

      Then go to Module manager in backend and assign your slideshow module to slideshow position.

    revesdepaysages Friend
    #968937

    Thank you very much!

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

This topic contains 2 replies, has 2 voices, and was last updated by  revesdepaysages 8 years, 4 months ago.

The topic ‘Add a position for a fullscreen slideshow’ is closed to new replies.