Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • lucavicini Friend
    #163825

    Hello,

    is there an easy way to add a new module position under the breadcrumb position?

    Kind Regards
    Luca

    thangnn1510 Friend
    #390698

    Please open main.php in templatesja_kyanite_iilayoutsblocks and add this code:

    $new_position = $this->getPositionName ('new_position');
    if($this->countModules($new_position)) : ?>
    <div class="ja-new-possition clearfix">
    <jdoc:include type="modules" name="<?php echo $new_position;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    before

    <?php $contents = $this->getBuffer('component');
    if (!preg_match ('/<div class="blog">s*</div>/',$contents)) :?>
    <div class="ja-content-main clearfix">
    <jdoc:include type="component" />
    </div>
    <?php endif; ?>

    After that please go to templatesja_kyanite_iitemplateDetails.xml and add this code

    <position>new_position</position>

    to before:


    </positions>

    You will have new module position (new_position) under breadcrumb position.

    Hope this helps and good luck!

    lucavicini Friend
    #390984

    Hello,

    I tried the code. I think that in the block there is a missing “<?php” at the very beginning.
    I couldn’t see the new position in the template.

    Maybe I am missing something. Any ideas?

    Kind Regards
    Luca

    thangnn1510 Friend
    #390990

    Sorry I have missed. Please change this code:

    $new_position = $this->getPositionName ('new_position');
    if($this->countModules($new_position)) : ?>
    <div class="ja-new-possition clearfix">
    <jdoc:include type="modules" name="<?php echo $new_position;?>" style="JAxhtml" />
    </div>

    To

    <?php $new_position = $this->getPositionName ('new_position');
    if($this->countModules($new_position)) : ?>
    <div class="ja-new-possition clearfix">
    <jdoc:include type="modules" name="<?php echo $new_position;?>" style="JAxhtml" />
    </div>

    lucavicini Friend
    #391609

    Sorry I still get an error:

    Parse error: syntax error, unexpected $end in /home/lvicini/public_html/flowers.biz/templates/ja_kyanite_ii/layouts/blocks/main.php on line 88

    lucavicini Friend
    #391629

    I believe there is a <?php endif; ?> missing on your second piece of code, but even then the module position does not appear 🙁

    thangnn1510 Friend
    #391705

    Could you give us the login information (FTP/Admin) to your site via HKC-648-18496. I’ll check for more detail for you.

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

This topic contains 7 replies, has 2 voices, and was last updated by  thangnn1510 13 years, 6 months ago.

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