ContentCreateStruct Class
Returns a structure used to create a new Content object. See ContentService.createContent
Constructor
ContentCreateStruct
(
-
contentTypeId -
locationCreateStruct -
languageCode
Parameters:
-
contentTypeIdStringContent Type id (e.g. "/api/ezp/v2/content/types/16")
-
locationCreateStructLocationCreateStructcreate structure for a Location object, where the new Content object will be situated
-
languageCodeStringThe 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:
-
idNumberfield id
-
fieldIdentiferStringfield identifier
-
fieldValueMixedfield value
