setCacheSettings(false, "ct_brands_home_page.cache", DC_DEFAULT_CACHE_TIMEOUT, DC_CACHE_TABLE); // set the cache settings $page->name = "ct_brands_page"; $page->page_title = "Our Brands"; $page->top_level_menu = "brands"; $page->display_category_link = true; $page->breadcrumb = array("Home" => "/index2.html", ); $page->identity_field = DC_DEFAULT_RECORD_IDENTITY_FIELD; // this gets the content for the page $page->main_record_settings = array("table" => DC_VIEW_LIVE_CONTENT, $page->identity_field => "86" ); // this gets the lists for the right hand column $page->record_list_settings = array( //"Brands" =>array("table" => CT_TABLE_BRANDS, "filter_settings" => array(/*"where_clause" => "",*/ "order_by_clause" => "brand",/* "group_by_clause" => "id",*/ "can_override_where_clause" => false), /*"display_location" => "brand_panel", */"record_item_template" => "ct_full_brand_list_panel.tpl", "identity_field" => $page->identity_field, "base_url" => "/catalogue/list".DC_WEB_PAGE_EXTENSION), //"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_drill_down_panel.tpl", "identity_field" => $page->identity_field, "base_url" => "/catalogue/list".DC_WEB_PAGE_EXTENSION), ); $page->table_control_details = array( "table_heading" => "View all Brands", "list_table_name" => CT_VIEW_LIVE_BRANDS, "list_table_identity_field" => DC_DEFAULT_RECORD_IDENTITY_FIELD, "filter_settings" => array( "order_by_clause" => "brand", ), "default_filtering" => array("where_clause_override_field" => "brand", "where_clause_override_value" => "embargoed_brands", "disable_region_filter" => true, ), "filter_controls" => array("enabled" => true, "settings" => array("controls_heading" => "", "control_type" => "links", "control_options" => array("labels" => array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"), "values" => array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")))), "fields_to_return" => '*', "columns_to_display" => array( "id" => array("label" => ""),"brand" => array("label" => "Brand"), "icon" => array("label" => "Brand"),/* "product_item_count" => array("label" => "Catalogue items"),*/ "brand_url" => array("label" => "Website")), "custom_field_rendering" => array("id" => "hide_values", /*"brand" => "hide_values",*/ /*"product_item_count" => "brand_product_count",*/ "brand_url" => "web_link"), "combined_fields" => array("field_to_overwrite" => "icon", "fields_to_combine" => array("brand" => "heading", "icon" => "icon")), "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( "id", "brand", "product_item_count", "brand_url"), "data_columns_link_url" => "/shop/brand.html?id=", "enforce_data_columns_link_url" => true, "sortable_columns" => array( "brand", "product_item_count", "brand_url"), "column_widths" => array("id" > "20px", "brand" => "140px", "product_item_count" => "280px", "brand_url" => "100px"), //"display_settings" => array("filename" => array("type" => "image", "url" => "/resources/images/content/", "max_height" => "80") ), //"pagination" => array("enabled" => true, "position" => "bottom", "records_per_page" => CT_DEFAULT_NUMBER_OF_RECORDS_TO_DISPLAY, "parameters" => array("tag")), "search_enabled" => false, "search_parameters" => array("fields_to_search" => array("brand",), "default_search_box_text" => "Search Brands", "default_search_box_tag" => "Brands", ), ); $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_SectionPanelWrapper.tpl", "Default_Content_BrandListPanel.tpl"); $page->logged_in_page_templates = array("LoggedIn_Navigation_Categories.tpl", "LoggedIn_Content_ListPanel.tpl"); $page->footer_templates = array(); $page->request_values_to_collect = array("id" => DC_REGEX_NUMERIC, "action" => DC_REGEX_PLAIN_TEXT, "filter" => 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.

"; } ?>