test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • pdfx Friend
    #151809

    Hi,

    Liking this template, im doing well learning a lot, but one thing I want to go further with is new module positions.

    What i want to do is have the standard mod positions USER 1, 2, 3, 4,5 duplicated so below i have new ones, called maybe 12,13,14,15, 16 etc

    Really want to go to the next step and start being able to add my own custom mod positions and would really appreciate help to start me off in that direction

    I have followed other posts and investigated, this works, but now the USER 1 -4 Positions have all moved to the left with their widths becoming smaller. It seems all the positions are being counted and instead of 25% width they are all 16.6%

    What i did

    Added positions in xml template

    OPened layout/blocks/topsl.php

    Then i duplicated the below code, re naming the user 1-5 positions to user 12 -16, also adding

    <div class=”ja-box-br”><div class=”ja-box-bl”><div class=”ja-box-tr”><div class=”ja-box-tl clearfix”>

    <?php if( $this->countModules(‘user1’) ): ?>
    <div class=”ja-box column ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user1’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user1″ style=”JAxhtml” />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules(‘user2’) ): ?>
    <div class=”ja-box column ja-box<?php echo $botsl[‘user2’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user2’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user2″ style=”JAxhtml” />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules(‘user3’) ): ?>
    <div class=”ja-box column ja-box<?php echo $botsl[‘user3’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user3’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user3″ style=”JAxhtml” />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules(‘user4’) ): ?>
    <div class=”ja-box column ja-box<?php echo $botsl[‘user4’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user4’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user4″ style=”JAxhtml” />
    </div>
    <?php endif; ?>

    <?php if( $this->countModules(‘user5’) ): ?>
    <div class=”ja-box column ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user5″ style=”JAxhtml” />
    </div>
    <?php endif; ?>

    </div></div></div></div>
    </div>
    </div>
    </div>
    <!– //TOP SPOTLIGHT –>

    Pd

    pdfx Friend
    #347559

    Has anyone got a solution?
    I seem to have done this correctly, but still have an issue

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

This topic contains 2 replies, has 1 voice, and was last updated by  pdfx 14 years, 6 months ago.

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