Getting and Setting a field with type pages to Treenode

Kenny Deblaere asked on July 22, 2016 15:57

Hello

I'm creating a TreeNode, updating through the API. My treenode has a field with Data Type Pages.

How can I get and set the value from the field?

Recent Answers


Petar Kozjak answered on July 25, 2016 11:25

Hi,

did you check out this in documentation? https://docs.kentico.com/display/API9/Pages

You can set or get value for you columns by get or set value: page.GetValue("ColumnName", DefaultValue) page.SetValue("ColumnName", value)

Example: page.SetValue("ArticleTitle", "Updated article title");

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.