setCacheSettings(false, "dc_catalogue_page.cache", DC_DEFAULT_CACHE_TIMEOUT, "dc_cache"/*DC_CACHE_TABLE*/); // set the cache settings $page->is_dynamic_cache = true; $page->name = "ct_catalogue_page"; $page->restricted_action = "View_catalogue"; $page->page_title = "Products & savings"; $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/"); $page->identity_field = DC_DEFAULT_RECORD_IDENTITY_FIELD; $page->table_control_details = array( "table_heading" => "Online catalogue", "list_table_name" => CT_VIEW_LIVE_PRODUCTS, "list_table_identity_field" => DC_DEFAULT_RECORD_IDENTITY_FIELD, "product_ids_table_name" => "ct_product_items_categories_link", "image_list_table" => CT_VIEW_IMAGE_LIBRARY_PRODUCT_ITEMS_LINK, "order_by_clause" => "uploaded_by desc, id desc", "fields_to_return" => '*', "columns_to_display" => array( "filename" => array("label" => "Sort by:"), "product_code" => array("label" => "Code"), "title" => array("label" => "Product Information"), "standard_price" => array("label" => "Price"), "actions" => array("label" => "")), "combined_fields" => array("field_to_overwrite" => "title", "fields_to_combine" => array("title" => "heading", "description" => "snippet_text")), // "custom_field_rendering" => array("standard_price" => "price"), "table_class" => "data_table", "table_header_class" => "data_table_header", "table_pagination_class" => "data_table_pagination", "table_record_count_class" => "data_table_record_count", "data_row_one_class" => "data_table_row", "data_row_two_class" => "data_table_row", "linked_columns" => array( "product_code", "title", "standard_price"), "data_columns_link_url" => "/catalogue/product2.html?id=", "sortable_columns" => array( "product_code", "title", "standard_price"), "column_widths" => array( "product_code" => "50px", "title" => "400px", "actions" => "50px"), "display_settings" => array("filename" => array("type" => "image", "url" => "/resources/images/content/", "max_height" => "100"), "standard_price" => array("type" => "add_class", "class" => "cherrytree-list-table-padding cherrytree-list-price"), "actions" => array("type" => "add_class", "class" => "cherrytree-list-table-padding")), "pagination" => array("enabled" => true, "position" => "bottom", "records_per_page" => CT_DEFAULT_NUMBER_OF_RECORDS_TO_DISPLAY, "parameters" => array("tag", "brand")), "search_enabled" => false, "search_parameters" => array("fields_to_search" => array("title", "description", "product_code", "bar_code", "keywords"), "default_search_box_text" => CT_CATALOGUE_SEARCH_BOX_DEFAULT_TEXT, ), ); $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"); // set the templates to include $page->page_templates = array("Default_Navigation_Categories.tpl", "Default_Content_ProductListPanel.tpl"); $page->logged_in_page_templates = array("LoggedIn_Navigation_Categories.tpl", "LoggedIn_Content_ProductListPanel.tpl"); $page->footer_templates = array(); $page->request_values_to_collect = array("id" => DC_REGEX_NUMERIC, "action" => DC_REGEX_PLAIN_TEXT, "cat_id" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT, "search-submit" => DC_REGEX_PLAIN_TEXT, "data_table_search_terms" => DC_REGEX_PLAIN_TEXT, "tag" => DC_REGEX_PLAIN_TEXT, "brand" => DC_REGEX_PLAIN_TEXT, "order_by" => DC_REGEX_PLAIN_TEXT, "direction" => DC_REGEX_PLAIN_TEXT, "page_number" => DC_REGEX_NUMERIC, "search-keywords" => 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.