diff --git a/code/Pages/KnowledgeBasePage.php b/code/Pages/KnowledgeBasePage.php index 2cc4869..01f34c9 100644 --- a/code/Pages/KnowledgeBasePage.php +++ b/code/Pages/KnowledgeBasePage.php @@ -70,10 +70,14 @@ function getKnowledgeBase() public function ChildCategories() { return DataObject::get( - 'KnowledgeBaseCategory', "ParentID = {$this->ID}", self::$default_category_order + 'KnowledgeBaseCategory', "ParentID = {$this->ID}", self::$default_category_order ); } + public function AllCategories(){ + return DataObject::get('KnowledgeBaseCategory'); + } + /** * Retrieves all descendant categories * @return DataObjectSet @@ -325,14 +329,16 @@ function init() parent::init(); // Jquery UI and themes - Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery-packed.js'); + Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.min.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.core.min.js'); - Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.widget.min.js'); - Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.position.min.js'); - Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.autocomplete.min.js'); - Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.core.css'); - Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.autocomplete.css'); - Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.theme.css'); + // Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.widget.min.js'); + // Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.position.min.js'); + // Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/minified/jquery.ui.autocomplete.min.js'); + Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/jquery.ui.min.js'); + // Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.core.css'); + // Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.autocomplete.css'); + // Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.theme.css'); + Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery.ui.min.css'); Requirements::javascript(KNOWLEDGEBASE_MODULE_DIR . '/javascript/kb.search.js'); }