SectionService Class
Service for managing the site's navigation
Constructor
SectionService
(
-
options
Parameters:
-
options
Object-
site
Stringuid
-
onlyThisSite
Booleanshould section service only return value set specifically by site rather than defaulting to global
-
Item Index
Methods
- _removeFromSectionMap
- deleteChildren
- formatUrl static
- getFormattedSections
- getParentSelectList
- getPillNavOptions static
- getSectionData static
- getSectionMapIndex
- static
- isValidType static
- removeFromSectionMap
- save
- trimForType static
- updateNavMap
- validate
- validateContentNavItem
- validateLinkNavItem
- validateNavItemContent
- validateNavItemEditor
- validateNavItemName
- validateNavItemParent
- validateSectionNavItem
Properties
- VALID_TYPES static
Methods
_removeFromSectionMap
(
private
-
sid
-
sectionMap
Parameters:
-
sid
String -
sectionMap
Array
deleteChildren
(
-
parentId
-
cb
Parameters:
-
parentId
String -
cb
Function
formatUrl
(
static
-
navItem
Parameters:
-
navItem
Object
getFormattedSections
(
-
localizationService
-
[currUrl]
-
cb
Parameters:
-
localizationService
Localization -
[currUrl]
String optional -
cb
Function
getParentSelectList
(
-
currItem
-
cb
Parameters:
-
currItem
String | ObjectID -
cb
Function
getSectionData
(
static
-
uid
-
navItems
-
currUrl
Parameters:
-
uid
String -
navItems
Object -
currUrl
String
getSectionMapIndex
(
Object
private
-
sid
-
sectionMap
Parameters:
-
sid
String -
sectionMap
Array
Returns:
Object:
isValidType
(
Boolean
static
-
type
Parameters:
-
type
String | Object
Returns:
Boolean:
removeFromSectionMap
(
-
section
-
[sectionMap]
-
cb
Parameters:
-
section
Object -
[sectionMap]
Array optional -
cb
Function
save
(
-
navItem
-
[options]
-
cb
Parameters:
-
navItem
Object -
[options]
Object optional -
cb
Function
trimForType
(
static
-
navItem
Parameters:
-
navItem
Object
validate
(
-
navItem
-
cb
Parameters:
-
navItem
Object -
cb
Function