Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • jeffrey77 Friend
    #197923

    I had added a module position on top of “component”

    <!-- MAIN CONTENT -->
    <div id="t3-content" class="t3-content col-xs-12 col-md-6 col-md-push-3">
    <?php if($this->hasMessage()) : ?>
    <jdoc:include type="message" />
    <?php endif ?>

    <!-- contenttop -->
    <?php if ($this->countModules($contenttop)) : ?>
    <!-- CUSTOM -->
    <div class="contenttop">
    <jdoc:include type="modules" name="<?php $this->_p('contenttop') ?>" style="T3Xhtml" />
    </div>
    <?php endif ?>
    <!-- contenttop -->

    <jdoc:include type="component" />

    it shows up only at /?tp=1 page.
    url: http://guangyuanky.com/index.php/personal-ads/?tp=1

    having the same code duplicated in all these blocks


    1. 01
    jeffrey77 Friend
    #535663

    found the mistake, solved.

    Saguaros Moderator
    #535826

    Hi Jeffrey,
    Glad that you figured it out.
    If possible, please share your findings here, since it can help others who face the same problem.

    jeffrey77 Friend
    #535925

    Instead of using $contenttop, use contenttop.
    The code of whole mainbody block with the one custom position on top of content area:


    <!-- MAIN CONTENT -->
    <div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-md-9">
    <?php if($this->hasMessage()) : ?>
    <jdoc:include type="message" />
    <?php endif ?>
    <!--JL add from here-->
    <?php if ($this->countModules('contenttop')): ?>
    <div class="contenttop">
    <jdoc:include type="modules" name="contenttop" title="contenttop" style="raw" />
    </div>
    <?php endif ?>
    <!--JL add end here-->

    <jdoc:include type="component" />

    </div>
    <!-- //MAIN CONTENT -->

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

This topic contains 4 replies, has 2 voices, and was last updated by  jeffrey77 9 years, 11 months ago.

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