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
// 1. On Page created make array (same variables as in created .php file)// for pages like code/wysiwyg/form/ news-group etc$aPageData = [ 'page_id' => 2,];// or for news single post $aPageData = [ 'page_id' => 2, 'section_id' => 3, 'post_id' => 4, 'post_section' => 5];$sPageData = serialize($aPageData);// Save to DB in 'page_data'// 2. On page view, get data from DB$link = '/page-url'$oPages= $database->query("SELECT * FROM `".TABLE_PREFIX."pages` WHERE `link` = '$link' "); if (!$oPages OR $oPages->numRows() == 0) { // Error 404 Page $page_id= 123; // redirect to 404 page } else { $aRow= $oPages ->fetchRow(); $aPageData = unserialize($aRow['page_data']); $page_id = $aRow['page_id']; }foreach($aPageData as $key => $value) { $$key = $value; } echo ' $page_id = '.$page_id;echo ' , $section_id = '.$section_id;echo ' , $post_id = '.$post_id;echo ' , $post_section = '.$post_section;// require('../index.php');
i have instalation with 4000 pages on local machine, it Is 4000 useless node files + files under /posta
Which posibilities you think you will lose ?