identity_field = DC_DEFAULT_RECORD_IDENTITY_FIELD; $page->setCacheSettings(false, "dc_product_page.cache", DC_DEFAULT_CACHE_TIMEOUT, DC_CACHE_TABLE); // set the cache settings $page->is_dynamic_cache = true; $page->name = "ct_product_page"; $page->restricted_action = "View_catalogue"; $page->page_title = "Product"; $page->top_level_menu = "go-shopping"; $page->second_nav_menu = array("current_page" => "/catalogue/online-short-list.html", "positions" => array("above"), "heading" => "View full range"); //$page->breadcrumb = array("Home" => "/", "Go Shopping" => "/catalogue/"); // this gets the content for the page $page->main_record_settings = array("table" => CT_VIEW_LIVE_PRODUCTS, $page->identity_field => "16" ); // this gets the lists for the right hand column $page->requires_freight_rule = true; $page->record_list_settings = array( //"Tags" =>array("table" => CT_VIEW_CATALOGUE_TAGS_AND_PARENTS, "filter_settings" => array(/*"where_clause" => "", */"order_by_clause" => "tag"/*, "group_by_clause" => ""*/), "display_location" => "tags_navigation_panel", "record_item_template" => "ct_catalogue_tags_panel.tpl", "identity_field" => $page->identity_field, "base_url" => "/catalogue/list".DC_WEB_PAGE_EXTENSION), //"Locations" =>array("table" => CT_VIEW_PRODUCT_AVAILABLE_LOCATIONS, "filter_settings" => array("where_clause" => ""/*, "order_by_clause" => "", "group_by_clause" => "id"*/, "can_override_where_clause" => true), "display_location" => "main_record_list", "record_item_template" => "none", "identity_field" => $page->identity_field, "base_url" => "/catalogue/index".DC_WEB_PAGE_EXTENSION) ); $page->search_results_page = '/catalogue/list'; $page->default_search_box_text = CT_CATALOGUE_SEARCH_BOX_DEFAULT_TEXT; $page->authentication_required = false; // do we need to log in to see this page $page->manage_user_input = true; // are e going to filter the user input $page->header_templates = array("Default_Javascript_JQueryIncludes.tpl", "Default_Javascript_SiteJavascript.tpl", "Default_Javascript_CatalogueListJavascript.tpl", "Default_Javascript_ProductDetail.tpl", "Default_Javascript_JQueryUIOverwrite.tpl"); // set the templates to include $page->page_templates = array("Default_Navigation_Categories.tpl", "Default_Content_ProductDetail.tpl"); // $page->templates_to_swap = array("Default_Content_ProductDetail.tpl" => "Test_Content_ProductDetail.tpl", "Default_Navigation_Breadcrumbs.tpl" => "nothing"); $page->logged_in_page_templates = array("LoggedIn_Navigation_Categories.tpl", "LoggedIn_Content_ProductDetail.tpl", "LoggedIn_Content_SuggestACatagory.tpl" , "LoggedIn_Content_Disclaimer.tpl" ); $page->footer_templates = array(); $page->request_values_to_collect = array( "action" => DC_REGEX_PLAIN_TEXT, "cat_id" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT, $page->identity_field => DC_REGEX_NUMERIC, "tag" => DC_REGEX_PLAIN_TEXT, "quantity" => DC_REGEX_NUMERIC, "delivery" => DC_REGEX_PLAIN_TEXT, "add_to_cart" => DC_REGEX_PLAIN_TEXT); // 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->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.