setCacheSettings(false, "dc_home_page.cache", DC_DEFAULT_CACHE_TIMEOUT, DC_CACHE_TABLE); // set the cache settings $page->name = "dc_home_page"; $page->page_title = "Domett Home"; //$page->banner_text = "banner-text-welcome.png"; $page->banner_text = array("heading" => "Welcome to Domett Truck & Trailer", "subheading" => ""); $page->navigation_marker_location = "45"; //$page->top_level_menu = "home"; $page->identity_field = DC_DEFAULT_RECORD_IDENTITY_FIELD; $page->main_record_settings = array("table" => DC_TABLE_CONTENT, $page->identity_field => "1" ); $page->record_list_settings = array( "News items" =>array("table" => "domett_view_live_news", "filter_settings" => array(/*"where_clause" => "news_edition_id_fk=3", *//*"order_by_clause" => "news_edition_id_fk desc",*/ /*"group_by_clause" => "edition",*/ "limit_clause" => "1", "can_override_where_clause" => true), "display_location" => "featured_news", "record_item_template" => "domett.tpl", "identity_field" => $page->identity_field, "base_url" => "/news/index".DC_WEB_PAGE_EXTENSION), ); $page->show_latest_news = true; $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->section_menu_override = ""; /*$page->header_templates = array("domett_jquery_includes.tpl", "domett_feautre_trailer_includes.tpl"); // set the templates to include $page->page_templates = array("domett_home_page_welcome_panel.tpl", "domett_featured_trailer_panel.tpl");*/ $page->header_templates = array("domett_jquery_includes.tpl", "domett_feautre_news_includes.tpl"); // set the templates to include $page->page_templates = array("domett_home_page_welcome_panel.tpl"/*, "domett_featured_news_panel.tpl"*/); $page->footer_templates = array(); $page->request_values_to_collect = array("id" => DC_REGEX_NUMERIC, "action" => DC_REGEX_PLAIN_TEXT, "display" => DC_REGEX_PLAIN_TEXT,"edition" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT); // set the values we are interested in getting from the $_REQUEST superglobal $page->displayDebugPanel = DC_DISPLAY_DEBUG_PANEL; // set whether 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.

"; } ?>