Skip to content

Commit

Permalink
allcat function
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf committed Jan 19, 2014
1 parent 06e3299 commit 734daf5
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions code/Pages/KnowledgeBasePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit 734daf5

Please sign in to comment.