Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
May 14, 2016 at 10:18 am #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,
Frankpavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 14, 2016 at 10:36 am #930531Hi
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
-
AuthorPosts
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
Jump to forum