Try our conversational search powered by Generative AI!

Get all Properties for a specified Page Type



I want to list out all the properties associated with a Page Type. How do I do this?

I'm not seeing any clues from the PageType class, so it would be good if someone could point me in the right direction.



Jun 03, 2010 15:00

You can access these through the PageType class. Rather confusingly Properties are called Definitions in this case. Try something like this.....

var pageType = PageType.Load(this.PageTypeData.ID);
foreach (var property in pt.Definitions)


//do something


Edited, Jun 03, 2010 15:46

That's it! I saw that in the SDK but ignored it - 'Definitions' completely threw me.

Thanks a lot.

Jun 03, 2010 16:43
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.