ContentCreateStruct Class
Returns a structure used to create a new Content object. See ContentService.createContent
Constructor
ContentCreateStruct
(
-
contentTypeId
-
locationCreateStruct
-
languageCode
Parameters:
-
contentTypeId
StringContent Type id (e.g. "/api/ezp/v2/content/types/16")
-
locationCreateStruct
LocationCreateStructcreate structure for a Location object, where the new Content object will be situated
-
languageCode
StringThe language code (e.g. "eng-GB")
Item Index
Methods
Methods
addField
(
ContentCreateStruct
-
id
-
fieldIdentifer
-
fieldValue
Adds a new field and its value into the structure
Parameters:
-
id
Numberfield id
-
fieldIdentifer
Stringfield identifier
-
fieldValue
Mixedfield value