setCacheSettings(false, "ct_contact_us_page.cache", DC_DEFAULT_CACHE_TIMEOUT, DC_CACHE_TABLE); // set the cache settings $page->name = "ct_contact_us_page"; $page->page_title = "Contact Cherrytree"; $page->top_level_menu = "contactus"; $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 => "622" ); // this gets the lists for the right hand column $page->record_list_settings = array( //"About" =>array("table" => DC_VIEW_CONTENT_BY_TAG, "filter_settings" => array("where_clause" => "category = 'about'", "order_by_clause" => "uploaded_date", "group_by_clause" => "id"), "display_location" => "subsection_navigation_panel", "record_item_template" => "devcore_record_list_item_title_only.tpl", "identity_field" => $page->identity_field, "base_url" => "/about/content".DC_WEB_PAGE_EXTENSION), //"Section Two" =>array("table" => DC_VIEW_CONTENT_BY_TAG, "filter_settings" => array("where_clause" => "category = 'section two'", "order_by_clause" => "uploaded_date", "group_by_clause" => "id"), "display_location" => "subsection_navigation_panel", "record_item_template" => "devcore_record_list_item_title_only.tpl", "identity_field" => $page->identity_field, "base_url" => "/sectiontwo/content".DC_WEB_PAGE_EXTENSION) ); $page->authentication_required = true; // 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"); // set the templates to include $page->page_templates = array("Default_Navigation_SectionPanelWrapper.tpl", "Default_Content_EmailForm.tpl"); $page->logged_in_page_templates = array("LoggedIn_Navigation_SectionPanelWrapper.tpl", "LoggedIn_Content_EmailForm.tpl"); $page->footer_templates = array(); $page->request_values_to_collect = array("action" => DC_REGEX_PLAIN_TEXT, "cat_request" => DC_REGEX_PLAIN_TEXT, "action-confirmed" => DC_REGEX_PLAIN_TEXT, "login-submit" => DC_REGEX_PLAIN_TEXT, "send-email-submit" => DC_REGEX_PLAIN_TEXT, "sender_given_name" => DC_REGEX_PLAIN_TEXT, "sender_family_name" => DC_REGEX_PLAIN_TEXT, "sender_email" => DC_REGEX_PLAIN_TEXT, "sender_message" => DC_REGEX_PLAIN_TEXT, "email-type" => DC_REGEX_PLAIN_TEXT, "sender_phone" => DC_REGEX_PLAIN_TEXT, "sender_contact_time" => DC_REGEX_PLAIN_TEXT, "sender_club" => 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.