Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • delio Friend
    #165332

    I want to split content-bot position into two.

    thanks,

    Dellio

    khoand Friend
    #396884

    Hi,
    Could you give me a snapshot with your annotation?

    delio Friend
    #396888

    1. content-bot-split-two
    2. content-bot
    khoand Friend
    #396894

    You replace this code from modulesmod_janewsprotmpldefaultblog.php

    $subwidth = 99.9/$subcols;
    with

    $subwidth = 150/$subcols;

    delio Friend
    #396900

    Hello, I think I posed questions inaccurately earlier! Sorry for the bad English! I want to divide the position CONTENT BOT of the template in two parts content-bot1 content-bot2. Is this possible?

    khoand Friend
    #396929

    Yes, it is.
    Replace this code from templatesja_teline_iiilayoutsblocksmain.php


    <?php
    $content_bottom = $this->getPositionName ('content-bottom');
    if($this->countModules($content_bottom)) : ?>
    <div class="ja-content-bottom clearfix">
    <jdoc:include type="modules" name="<?php echo $content_bottom;?>" style="raw" />
    </div>
    <?php endif; ?>

    with


    <?php if($this->hasBlock('content-bot1') || $this->hasBlock('content-bot2') ) : ?>
    <div id="ja-content-bot" class="ja-content-bot clearfix">
    <?php if($this->hasBlock('content-bot1')) :
    $block = &$this->getBlockXML ('content-bot1');
    ?>
    <div id="ja-content-bot1" class="ja-content-bot clearfix" style="width:49%">
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif;?>
    <?php if($this->hasBlock('content-bot2')) :
    $block = &$this->getBlockXML ('content-bot2');
    ?>
    <div id="ja-content-bot2" class="ja-content-bot clearfix" style="width:49%">
    <?php $this->showBlock ($block); ?>
    </div>
    <?php endif;?>
    </div>
    <?php endif; ?>

    delio Friend
    #396935

    Hello, my template is ja_teline_iii_v2 . I couldn’t find templatesja_teline_iiilayoutsblocksmain.php
    Thank you for your patience!

    khoand Friend
    #397140

    My solution I gave you is used by teline_iii 1.5. for teline_iii 1.6, you try this way:
    – You add this code into pluginssystemjat3jat3base-themesdefaultpagedefault.php


    <?php
    //new-position
    if($this->hasBlock('new-position')) :
    $block = &$this->getBlockXML ('new-position');
    $this->showBlock ($block);
    endif; ?>

    before


    //content-bottom

    – You login backend > Extensions > template management > ja_teline_iii > layout tab > edit default layout. Add this code

    <block name="new-position" type="spotlight" main-inner="1">content-bot1, content-bot2</block>
    after

    <blocks name="middle" colwidth="26" main-inner="1" fixheight="1">
    – You set position of modules is content-bot1 or content-bot2

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

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

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