dw.content
Class ContentMgr

Provides helper methods for getting content assets, library folders and the
content library of the current site.
Constants
PRIVATE_LIBRARY
:
String = "PrivateLibrary"
The input string to identify that the library is a private site library when invoking getLibrary(String).
Properties
siteLibrary
:
Library
(Read Only)
The content library of the current site.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static getContent(id
:
String)
:
Content
Returns the content with the corresponding identifier within the current site's site library.
static getContent(library
:
Library, id
:
String)
:
Content
Returns the content with the corresponding identifier within the specified library.
static getFolder(id
:
String)
:
Folder
Returns the folder identified by the specified id within the current site's site library.
static getFolder(library
:
Library, id
:
String)
:
Folder
Returns the folder identified by the specified id within the specified library.
static getLibrary(libraryId
:
String)
:
Library
Returns the content library specified by the given id.
static getSiteLibrary()
:
Library
Returns the content library of the current site.
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβthis is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Methods inherited from class
Object
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
Method Detail
getContent
Returns the content with the corresponding identifier within the current
site's site library.
Parameters:
id
-
the ID of the content asset to find.
Returns:
the content if found, or null if not found.
getContent
Returns the content with the corresponding identifier within the specified library.
Parameters:
library
-
the content library to look for the content in
id
-
the ID of the content asset to find.
Returns:
the content if found, or null if not found.
getFolder
Returns the folder identified by the specified id within the current
site's site library.
Parameters:
id
-
the ID of the folder to find.
Returns:
the folder, or null if not found.
getFolder
Returns the folder identified by the specified id within the specified library.
Parameters:
library
-
the content library to look for the folder in
id
-
the ID of the folder to find.
Returns:
the folder, or null if not found.
getLibrary
Returns the content library specified by the given id. If PRIVATE_LIBRARY is used, then the current
site's private library will be returned.
Parameters:
libraryId
-
the id of the library to return.
Returns:
the library for the passed id. Returns null if there is no content library with that id.
getSiteLibrary
static getSiteLibrary()
:
Library
Returns the content library of the current site.
Returns:
the content library of the current site, or null if there is not content library assigned to the current site.