3.2.8 Content Node
Content node lets you read and update content and dynamic data. These are structured data types created using schemas. See also: How do I create a schema?
Type. The keyname of the schema or keyname.fieldname of the field can be passed in this field. The following image shows the Schema name is testinsights and the fieldname is hospitalPopulation.
keyname. The Schema’s keyname can be found in the view schema page.
Login to Experience Manager and select a project.
Select Develop > Schemas from the side menu.
Select a schema from the schema list.
Locate the key icon. The text next to the key icon is the keyname (for example, testinsights).
Note: You can use keynames survey and flow for Survey and Flow schemas respectively.
fieldname. You will find the fieldname within the Schema. The key field in the schema is the fieldname.
ID. Enter the unique ID of the data item that is stored. Based on the type provided, this can be content Data ID, Dynamic Data ID, surveyID, flowID, and so on.
Hide Element. If the data is stored in HTML format, then you can choose to retrieve only the desired div.classes. The div.classes that you wish to remove from the payload should be given in this field. For example, in the content data, the County field is populated with a sample HTML code as follows.
If you want to remove class = "three" from the payload, then place “p.three” in the Remove field as shown below. The payload shows that the class = "three" is hidden and only the values from the class = “one” and class = “two” are visible from the hospitalCounty field in the testinsights schema.
Replace Value. Update the contents of a specific field in a data item. The fieldname and the Write Data value are required.
In the following example, a custom content schema is created to save the list of hospitals in different countries. You can update changes in the hospital data using the Content node.
Change the content of hospitalCounty field in the testinsights schema within a data item with Id 5d30515c05bab66400acc93e as Updated County Value.
Video Content
https://cdn.orbita.cloud/assets/orbita/experiencedesigner/contentnode.mp4
Useful Links
Related Content