setCacheSettings(false, "test_page.cache", DC_DEFAULT_CACHE_TIMEOUT, null); // set the cache settings $page->name = "test_page"; $page->page_title = "Search results"; $page->authentication_required = false; // do we need to log in to see this page $page->manage_user_input = true; // are we going to filter the user input $page->breadcrumb = array("Home" => "/"); $page->header_templates = array("Default_Javascript_JQueryIncludes.tpl", "Default_Javascript_SiteJavascript.tpl", "Default_Javascript_CatalogueListJavascript.tpl", "Default_Css_SearchStyleSheets.tpl"); // set the templates to include $page->page_templates = array("Default_Navigation_SearchFilters.tpl", "Default_Inserts_SearchResultsPanel.tpl", ); $page->logged_in_page_templates = array("Default_Navigation_SearchFilters.tpl", "Default_Inserts_SearchResultsPanel.tpl", ); $page->footer_templates = array(); // $page->templates_to_swap = array("Default_Chrome_Banner.tpl" => "Test_Chrome_Banner.tpl"); $page->request_values_to_collect = array("id" => DC_REGEX_NUMERIC, "action" => DC_REGEX_PLAIN_TEXT, "query" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT, "start" => DC_REGEX_NUMERIC, "page_number" => DC_REGEX_NUMERIC, "filter" => DC_REGEX_PLAIN_TEXT,"cat_id" => DC_REGEX_NUMERIC ); // set the values we are interested in getting from the $_REQUEST superglobal $page->displayDebugPanel = DC_DISPLAY_DEBUG_PANEL; // set wheter to display the debugging panel $page->displayDebugPanel = false; $page->createPage(); // crreate the page }else{ // something went wrong in the config file and we can't find the page class echo DC_DATABASE_SERVER_ERROR_MESSAGE; } }else{ // we can't find the config file echo "

Unable to find config file at: ".dirname($_SERVER['DOCUMENT_ROOT']).DIRECTORY_SEPARATOR.'dc-devcore-config/config.php.'.".
Please check the file path is correct.

"; } ?>