-
AuthorPosts
-
April 19, 2016 at 7:23 pm #920062
Hi,
I’m still trying to understand the T3 framework despite having read the documentation. I have a question which I hope someone can assist me with. I wanted to add a layout block to the footer divided onto 2 positions of equal size. How do I best go about that? I’ve looked at the default blocks available and am yet to understand how best to achieve this.
Can anyone please assist with some advice?
Thanks in advance.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 20, 2016 at 10:22 am #920412Hi,
I added a row with 2 module positions as you see here:
<?php if ($this->countModules('footer-left')) : ?> <!-- footer-left --> <div class="footer-bw-l t3-sl t3-sl-1 col-xs-12 col-sm-3 col-md-6<?php $this->_c('footer-left') ?>"> <jdoc:include type="modules" name="<?php $this->_p('footer-left') ?>" style="raw" /> </div> <!-- //footer-left --> <?php endif ?> <?php if ($this->countModules('footer-right')) : ?> <!-- footer-right --> <div class="header-bw-r t3-sl t3-sl-2 class="t3-content col-xs-12 col-sm-9 col-md-6<?php $this->_c('footer-right') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('footer-right') ?>" style="raw" /> </div> </div> <!-- //footer-right --> <?php endif ?>
When I go to Layout > Module positions in the template editor I can see that I have two module positions of equal size, which is what I wanted, but now I have further questions:
-
When I go to Layout > Responsive Layout I can’t grab the edges of each module position block and drag it to adjust the width for different devices. Do I need additional classes added to the code above to make that possible?
- On mobile where each of the two module position blocks will occupy 100% of the width (col-xs-12) I want footer-right to output BEFORE footer-left. Is there a quick way to prioritise the order?
Thanks in advance
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 21, 2016 at 1:27 am #920665Hi
You already defined the size for mobile views in the php file col-xs is used for extra small views .
Besides change the order , you can change the module position right above the left in the code to show it first .April 25, 2016 at 11:16 am #922494How? You don’t explain how! What is the point of this forum?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 25, 2016 at 11:50 am #922505Hi
You already posted the code in this post What you need to do is first add code of right then left .
here > http://prntscr.com/awl9bp -
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum