protected function initAvailableParentMenuItems() {
$this->availableParentMenuItems = new PageMenuItemList();
$this->availableParentMenuItems->getConditionBuilder()->add("page_menu_item.parentMenuItem = ''");
+ $this->availableParentMenuItems->getConditionBuilder()->add('page_menu_item.menuPosition = ?', array('header'));
$this->availableParentMenuItems->sqlOrderBy = "page_menu_item.showOrder ASC";
}
}
else {
$this->menuItemController = '';
-
+
// validate menu item link
if (!I18nHandler::getInstance()->validateValue('menuItemLink')) {
throw new UserInputException('menuItemLink');