Get Template properties from parent

2025/04/27 7:21 PM

I want to implement functionality to allow editors to set webpage template properties to inherit from the parent page. I do not see any way to access template properties from another page, or a way to access the ContentItemCommonDataVisualBuilderTemplateConfiguration field in the ContentItemCommonData


Environment

Answers

2025/04/27 7:31 PM
Answer

I looked through the Migration.Tool code and found where it was referenced.

var parentCommonDataInfo = await ContentItemCommonDataInfo.Provider.GetAsync(parentPage.SystemFields.WebPageItemID);
parentCommonDataInfo.ContentItemCommonDataVisualBuilderTemplateConfiguration
2025/04/28 1:26 PM

There you go!

Also...and this may be bad advice, but if you're doing some unusual, and the API doesn't exist, don't forget you can always carefully just SQL it (use new DataQuery() { CustomQueryText = MyQuery }.GetDataContainerResultAsync() )

To answer this question, you have to login first.