WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: effo on January 12, 2010, 10:43:27 PM

Title: How to edit/modify 'right' color boxes in multiflex-3?
Post by: effo on January 12, 2010, 10:43:27 PM
I've just started to play with WB and the Multiflex-3 template.

I wonder how to edit the boxes to the right in the template. I want to get rid of some of the boxes, and modify the content of others. Is the right approach to edit the index.php? That doesn't make editing the text very flexible...?
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: Waldschwein on January 12, 2010, 10:51:46 PM
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/content-blocks.php
 :wink:

Yours Michael
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: effo on January 13, 2010, 09:17:17 AM
Aha... Thanks for the input, it pushed me in the right direction (I believe...). I didn't realize I had to edit the php files myself, I believed it was enough to enable the blocks.

So I modified info.php with

Code: [Select]
$block[2]='Sidebar 1';
$block[3]='News';
$block[4]='News 2';
$block[5]='Sidebar 2';

and then inserted

Code: [Select]
<?php page_content(3); ?>
<?php page_content(4); ?>
<?php page_content(2); ?>
<?php page_content(5); ?>

in the desired places in index.php. And after that I could add two news sections and two sidebar sections to a page.

However, I realized that this was not exactly what I wanted. With this setup, the content in the boxes will vary depending on which page I currenlty view. I would like the content in these boxes to be the same for all pages. Is that possible?
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: Waldschwein on January 13, 2010, 09:46:18 AM
Hello!

Yes it's possible - either look here (German tutorials site) http://www.websitebakers.de/tutorials/topics/global-blocks---globale-inhalte.php or (if you don't understand German) there's a forum post: https://forum.WebsiteBaker.org/index.php?topic=2154.20

Yours Michael
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: effo on January 13, 2010, 01:05:22 PM
Thanks for the hint (and the quick response)!

I had a look at the forum post and I have one question - what is a "menuitem" mentioned in step 2?
Quote
2 - make a menuitem 'blocks' and set it hidden (this will be the place to store the blocks)

Is it the same as a "menu link"?
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: effo on January 14, 2010, 10:19:02 AM
I answer myself here - yes, a "menuitem" is a "menu link". The suggestion solution works extremely well.
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: mr-fan on January 14, 2010, 12:03:48 PM
no and yes.... it's equal what pagetyp you choose - it's just the parent page of the "sub" hidden pages with the content for your global blocks!

fine if it work good for you!

if you've get expired you could try this more advanced solution that let you choose a "standard" content and if you want to have on some pages different contents only make a section and change the block to this one.... the standard content goes away for special content on this page....this code is in EN

https://forum.WebsiteBaker.org/index.php/topic,2154.msg79480.html#msg79480

regards martin
Title: Re: How to edit/modify 'right' color boxes in multiflex-3?
Post by: dadio on March 01, 2010, 02:21:04 PM
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/content-blocks.php
 :wink:

Yours Michael


BTW, this link is broken, here is the new one: http://www.websitebaker2.org/en/help/designer-guide/content-blocks.php