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

Blocks not displaying

(1/2) > >>

been_1990:
Hi all...
I have several blocks on my template that dont show up when accessing the page.
On infophp I create some blocks and then try to read their content on the template index,php. But that doesn't output anything. But if I create only one block, it does. Wierd?
WB is installed in my Windows pc at localhost using xampp.

kweitzel:
You might need to activate the blocks in the options - advanced options ;-)

cheers

Klaus

been_1990:
It is.
Section Blocks:    Enabled 
But only one extra block works. page_content() and page_content(2).
When:

--- Code: ---$block[2] = 'pre-footer1';
--- End code ---
Both work, when:

--- Code: ---$block[2] = 'pre-footer1';
$block[3] = 'pre-footer2';
$block[4] = 'pre-footer3';
$block[5] = 'pre-footer4';
$block[6] = 'intro-header';
--- End code ---
None works.

kweitzel:
Beats me ... using the same feature on www.weitzel.biz. Are you shure that the content is not "just" hidden by CSS? Maybe you should explain a bit better where it is not working and a link could help as well.

cheers

Klaus

been_1990:
The content isn't even written to the page.
info.php:

--- Code: ---$block[2] = 'pre-footer1';
--- End code ---
index.php:
 
--- Code: ---    <?php echo page_content(2); ?>   
 <?php echo page_content(); ?>
--- End code ---

Blocks enabled.
Article set to main
Article2 set to block pre-footer.

No content  comming from <?php echo page_content(2);.
Content comming from <?php echo page_content();

I can't post a link since it's a local network.

Navigation

[0] Message Index

[#] Next page

Go to full version