Class Folder

Class representing a folder for organizing content assets in Commerce Cloud Digital.

PropertyDescription
ID: String (read-only)Returns the ID of the folder.
content: Collection (read-only)Returns the content objects for this folder, sorted by position.
description: String (read-only)Returns the description for the folder as known in the current locale or null if it cannot be found.
displayName: String (read-only)Returns the display name for the folder as known in the current locale or null if it cannot be found.
online: Boolean (read-only)Indicates if the folder is set online or offline.
onlineContent: Collection (read-only)Returns the online content objects for this folder, sorted by position.
onlineSubFolders: Collection (read-only)Returns the online subfolders of this folder, sorted by position.
pageDescription: String (read-only)Returns the page description for this folder using the value in the current locale, or returns null if no value was found.
pageKeywords: String (read-only)Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found.
pageTitle: String (read-only)Returns the page title for this folder using the value in the current locale, or returns null if no value was found.
pageURL: String (read-only)Returns the page URL for this folder using the value in the current locale, or returns null if no value was found.
parent: Folder (read-only)Returns the parent folder of this folder.
root: Boolean (read-only)Indicates if this is the root folder.
siteMapChangeFrequency: String (read-only)Returns the folder's sitemap change frequency.
siteMapIncluded: Number (read-only)Returns the folder's sitemap inclusion.
siteMapPriority: Number (read-only)Returns the folder's sitemap priority.
subFolders: Collection (read-only)Returns the subfolders of this folder, sorted by position.
template: String (read-only)Returns the name of the template used to render the folder in the store front.

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getContent()Returns the content objects for this folder, sorted by position.
getDescription()Returns the description for the folder as known in the current locale or null if it cannot be found.
getDisplayName()Returns the display name for the folder as known in the current locale or null if it cannot be found.
getID()Returns the ID of the folder.
getOnlineContent()Returns the online content objects for this folder, sorted by position.
getOnlineSubFolders()Returns the online subfolders of this folder, sorted by position.
getPageDescription()Returns the page description for this folder using the value in the current locale, or returns null if no value was found.
getPageKeywords()Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found.
getPageTitle()Returns the page title for this folder using the value in the current locale, or returns null if no value was found.
getPageURL()Returns the page URL for this folder using the value in the current locale, or returns null if no value was found.
getParent()Returns the parent folder of this folder.
getSiteMapChangeFrequency()Returns the folder's sitemap change frequency.
getSiteMapIncluded()Returns the folder's sitemap inclusion.
getSiteMapPriority()Returns the folder's sitemap priority.
getSubFolders()Returns the subfolders of this folder, sorted by position.
getTemplate()Returns the name of the template used to render the folder in the store front.
isOnline()Indicates if the folder is set online or offline.
isRoot()Indicates if this is the root folder.

describe, getCustom

getCreationDate, getLastModified, getUUID

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

ID: String (read-only)

Returns the ID of the folder. The ID can be used to uniquely identify a folder within any given library. This folder ID provides an alternative lookup mechanism for folders frequently used in the storefront.


content: Collection (read-only)

Returns the content objects for this folder, sorted by position.


description: String (read-only)

Returns the description for the folder as known in the current locale or null if it cannot be found.


displayName: String (read-only)

Returns the display name for the folder as known in the current locale or null if it cannot be found.


online: Boolean (read-only)

Indicates if the folder is set online or offline. Initially, all folders are set online.


onlineContent: Collection (read-only)

Returns the online content objects for this folder, sorted by position.


onlineSubFolders: Collection (read-only)

Returns the online subfolders of this folder, sorted by position.


pageDescription: String (read-only)

Returns the page description for this folder using the value in the current locale, or returns null if no value was found.


pageKeywords: String (read-only)

Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found.


pageTitle: String (read-only)

Returns the page title for this folder using the value in the current locale, or returns null if no value was found.


pageURL: String (read-only)

Returns the page URL for this folder using the value in the current locale, or returns null if no value was found.


parent: Folder (read-only)

Returns the parent folder of this folder.


root: Boolean (read-only)

Indicates if this is the root folder.


siteMapChangeFrequency: String (read-only)

Returns the folder's sitemap change frequency.


siteMapIncluded: Number (read-only)

Returns the folder's sitemap inclusion.


siteMapPriority: Number (read-only)

Returns the folder's sitemap priority.


subFolders: Collection (read-only)

Returns the subfolders of this folder, sorted by position.


template: String (read-only)

Returns the name of the template used to render the folder in the store front.


getContent(): Collection

Returns the content objects for this folder, sorted by position.

Returns:

  • the content objects for this folder, sorted by position.

getDescription(): String

Returns the description for the folder as known in the current locale or null if it cannot be found.

Returns:

  • the description for the folder as known in the current locale or null if it cannot be found.

getDisplayName(): String

Returns the display name for the folder as known in the current locale or null if it cannot be found.

Returns:

  • the display name for the folder as known in the current locale or null if it cannot be found.

getID(): String

Returns the ID of the folder. The ID can be used to uniquely identify a folder within any given library. This folder ID provides an alternative lookup mechanism for folders frequently used in the storefront.

Returns:

  • the ID of the folder.

getOnlineContent(): Collection

Returns the online content objects for this folder, sorted by position.

Returns:

  • the online content objects for this folder, sorted by position.

getOnlineSubFolders(): Collection

Returns the online subfolders of this folder, sorted by position.

Returns:

  • the online subfolders of this folder, sorted by position.

getPageDescription(): String

Returns the page description for this folder using the value in the current locale, or returns null if no value was found.

Returns:

  • the page description for this folder using the value in the current locale, or returns null if no value was found.

getPageKeywords(): String

Returns the page keywords for this folder using the value in the current locale, or returns null if no value was found.

Returns:

  • the page keywords for this folder using the value in the current locale, or returns null if no value was found.

getPageTitle(): String

Returns the page title for this folder using the value in the current locale, or returns null if no value was found.

Returns:

  • the page title for this folder using the value in the current locale, or returns null if no value was found.

getPageURL(): String

Returns the page URL for this folder using the value in the current locale, or returns null if no value was found.

Returns:

  • the page URL for this folder using the value in the current locale, or returns null if no value was found.

getParent(): Folder

Returns the parent folder of this folder.

Returns:

  • the parent folder of this folder.

getSiteMapChangeFrequency(): String

Returns the folder's sitemap change frequency.

Returns:

  • the value of the attribute 'siteMapChangeFrequency'.

getSiteMapIncluded(): Number

Returns the folder's sitemap inclusion.

Returns:

  • the value of the attribute 'siteMapIncluded'.

getSiteMapPriority(): Number

Returns the folder's sitemap priority.

Returns:

  • the value of the attribute 'siteMapPriority'.

getSubFolders(): Collection

Returns the subfolders of this folder, sorted by position.

Returns:

  • the subfolders of this folder, sorted by position.

getTemplate(): String

Returns the name of the template used to render the folder in the store front.

Returns:

  • the name of the template used to render the folder.

isOnline(): Boolean

Indicates if the folder is set online or offline. Initially, all folders are set online.

Returns:

  • true if the folder is online, false otherwise.

isRoot(): Boolean

Indicates if this is the root folder.

Returns:

  • true if this is the root folder, false otherwise.