Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • fdrakes Friend
    #930529

    How /where can i do this?

    I need a ".col-md-8" / ".col-md-4" view for article pages.
    (I do not want to modify .col-md-9 / .col-md-3 to 75%/25% in the CSS…)

    BR,
    Frank

    pavit Moderator
    #930531

    Hi

    Article page is using as sublayout the magazine layout ( as in the demo ) and magazine layout is using for mainbody the mainbody-magazine block,so to change width open this file :

    /templates/ja_teline_v/tpls/blocks/mainbody-magazine.php and change from :

    defined('_JEXEC') or die;
    $sidebar = 'sidebar';
    $hasSidebar = $this->countModules ($sidebar);
    $mainwidth = $hasSidebar ? ' col-md-9' : '';
    ?>
    <div class="main">
        <?php if ($this->countModules('home-1')) : ?>
            <div class="wrap <?php $this->_c('home-1') ?>">
                <div class="container">
                    <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="raw" />
                </div>
            </div>
        <?php endif ?>
      <div id="t3-mainbody" class="container t3-mainbody mainbody-magazine">
        <div class="row equal-height">
                <!-- MAIN CONTENT -->
                <div id="t3-content" class="col t3-content<?php echo $mainwidth ?>">
                    <?php if($this->hasMessage()) : ?>
                    <jdoc:include type="message" />
                    <?php endif ?>
                    <jdoc:include type="component" />
                </div>
                <!-- //MAIN CONTENT -->
                <?php if ($hasSidebar) : ?>
                <!-- SIDEBAR RIGHT -->
                <div class="col t3-sidebar t3-sidebar-right col-md-3 <?php $this->_c($sidebar) ?>">
                    <jdoc:include type="modules" name="<?php $this->_p($sidebar) ?>" style="T3Xhtml" />
                </div>
                <!-- //SIDEBAR RIGHT -->
                <?php endif ?>
                </div>
      </div> 
    defined('_JEXEC') or die;
    $sidebar = 'sidebar';
    $hasSidebar = $this->countModules ($sidebar);
    $mainwidth = $hasSidebar ? ' col-md-8' : '';
    ?>
    <div class="main">
        <?php if ($this->countModules('home-1')) : ?>
            <div class="wrap <?php $this->_c('home-1') ?>">
                <div class="container">
                    <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="raw" />
                </div>
            </div>
        <?php endif ?>
      <div id="t3-mainbody" class="container t3-mainbody mainbody-magazine">
        <div class="row equal-height">
                <!-- MAIN CONTENT -->
                <div id="t3-content" class="col t3-content<?php echo $mainwidth ?>">
                    <?php if($this->hasMessage()) : ?>
                    <jdoc:include type="message" />
                    <?php endif ?>
                    <jdoc:include type="component" />
                </div>
                <!-- //MAIN CONTENT -->
                <?php if ($hasSidebar) : ?>
                <!-- SIDEBAR RIGHT -->
                <div class="col t3-sidebar t3-sidebar-right col-md-4 <?php $this->_c($sidebar) ?>">
                    <jdoc:include type="modules" name="<?php $this->_p($sidebar) ?>" style="T3Xhtml" />
                </div>
                <!-- //SIDEBAR RIGHT -->
                <?php endif ?>
                </div>
      </div> 

    Regards


    1. Screenshot_8-4
    2. Screenshot_9-4
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 8 years, 6 months ago.

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