WebsiteBaker Support (2.8.x) > Templates, Menus & Design

How to edit/modify 'right' color boxes in multiflex-3?

(1/2) > >>

effo:
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...?

Waldschwein:
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/content-blocks.php
 :wink:

Yours Michael

effo:
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: ---$block[2]='Sidebar 1';
$block[3]='News';
$block[4]='News 2';
$block[5]='Sidebar 2';
--- End code ---

and then inserted


--- Code: ---<?php page_content(3); ?>
<?php page_content(4); ?>
<?php page_content(2); ?>
<?php page_content(5); ?>
--- End code ---

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?

Waldschwein:
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

effo:
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)
--- End quote ---

Is it the same as a "menu link"?

Navigation

[0] Message Index

[#] Next page

Go to full version