test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • soam jena Friend
    #198908

    Hello there,

    I want to create new module psoitions with new spotlight code apart from the default module positions given in JA BRISK.How can i do this ??

    pavit Moderator
    #539183

    Hi

    HERE a userguide on how to create a new module position .

    HERE also the T3 documentation

    soam jena Friend
    #539184

    Thanks for the Documentation link.But i need to add more spotlight code in default.php file for e.g spotlight-x in default.php and define there the module position names and then add them in template details.xml file.But by this the module positions work but it is not showing in the back end part in template manager layout part.

    Do you have any idead about it ???

    pavit Moderator
    #539187

    Simply copy one of the spotlight file and rename it.

    For example :

    1) Copy spotlight-6.php and rename it spotlight-7.php

    2) Edit it in this way :

    defined('_JEXEC') or die;
    ?>

    <?php if ($this->checkSpotlight('spotlight-7', 'position-30, position-31, position-32, position-33')) : ?>
    <!-- SPOTLIGHT 7 -->
    <section class="wrap ja-sl ja-sl-6">
    <div class="container">

    <?php
    $this->spotlight ('spotlight-7', 'position-30, position-31, position-32, position-33')
    ?>
    </div>
    </section>
    <!-- //SPOTLIGHT 7 -->
    <?php endif ?>

    3) Go to Default.php file and add the spotlight-7 block:

    <?php $this->loadBlock ('header') ?>

    <?php $this->loadBlock ('slideshow') ?>

    <?php $this->loadBlock ('masshead') ?>

    <?php $this->loadBlock ('spotlight-1') ?>

    <?php $this->loadBlock ('mainbody') ?>

    <?php $this->loadBlock ('spotlight-2') ?>

    <?php $this->loadBlock ('spotlight-3') ?>

    <?php $this->loadBlock ('spotlight-7') ?>

    <?php $this->loadBlock ('navhelper') ?>

    <?php $this->loadBlock ('footer') ?>

    </body>

    </html>

    Here the result


    1. Screenshot_6
    soam jena Friend
    #539189

    Thank you!!

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

This topic contains 5 replies, has 2 voices, and was last updated by  soam jena 10 years, 6 months ago.

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