WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
One thing you don't mention here is how to edit these blocks. Are they visible and editable from the Pages section of the Admin, or do they need to be edited manually?Thanks!
3 - make a new page
might be due to the code in your block1 pagetry only an echo 'Hello world'; to test this.John
Is possible make second block without absolute path ? Defined NOT as:<?php include (WB_URL."/pages/blocks/block2.php"); ?>but something like this:<?php include ("../pages/blocks/block2.php"); ?>Absolute url fopen is often forbiden by server...Thanks
That's not an absolute path. An absolute path would be http://www.etcetc.
....5 - change your current template's index.php by adding the two pages you just made <?php include (WB_URL."/pages/blocks/block1.php"); ?> and<?php include (WB_URL."/pages/blocks/block2.php"); ?> at the position you want it.
<?php include (WB_URL."/pages/blocks/block1.php"); ?>
<?php include (WB_URL . WB_PATH . "/blocks/block1.php"); ?>
$ch = curl_init();$timeout = 5; // set to zero for no timeoutcurl_setopt ($ch, CURLOPT_URL, WB_URL.'/pages/pagename.php');curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$file_contents = curl_exec($ch);curl_close($ch);// display fileecho $file_contents;
if it does not work, try curl instead:Code: [Select]$ch = curl_init();$timeout = 5; // set to zero for no timeoutcurl_setopt ($ch, CURLOPT_URL, WB_URL.'/pages/pagename.php');curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$file_contents = curl_exec($ch);curl_close($ch);// display fileecho $file_contents;cheersKlaus