WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • multiple page_content sections
  • Print
Pages: [1]   Go Down

Author Topic: multiple page_content sections  (Read 5895 times)

Offline mgeene

  • Posts: 148
multiple page_content sections
« on: July 25, 2016, 11:14:26 AM »
I have a responsive template where i want to add multiple page_content sections.
I have several page_content sections assigned to columns in the template, for example, full width, six columns width, four columns width, etc.
Now i have specified this in my template but i notice that when i add 2 same sections on a page, for example, full width, this move in 1 div and not in 2 different divs, so i can not change the position on the section page.

I used this code in the head:
Code: [Select]
<?php 
ob_start();
page_content(1);
$page_content_1 = ''.ob_get_contents();
ob_end_clean();

if(defined('tekst_volledige_breedte') AND TEKST_VOLLEDIGE_BREEDTE-1 != '') { 
$page_content_1 = TEKST_VOLLEDIGE_BREEDTE-1; 
} else {
ob_start();
        
page_content(1);
        
$page_content_1 = ''.ob_get_contents();
        
ob_end_clean();
    
}
?>



I use this code in the template:
Code: [Select]
<?php if(($page_content_1) == true){ ?>
 <div class="aligncenter">
<?php } ?>
<?php echo $page_content_1; ?>
</div>

Does anyone know the solution here or what could be the problem?

Thanks for your reply!
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8920
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: multiple page_content sections
« Reply #1 on: July 25, 2016, 11:25:00 AM »
Hello, look here: http://wbhelp.org/tips-and-tricks/2014/multiple-columns-in-a-template/
Hope it helps.
Logged
https://onkel-franky.de

Offline mgeene

  • Posts: 148
Re: multiple page_content sections
« Reply #2 on: August 01, 2016, 11:19:58 AM »
Hello,

Thanks this works verry fine and it's simple to work with.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • multiple page_content sections
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2