Create a custom property for a page type in EPI 6

Vote:
 

Hey guys,

I have to make some modifications to an EPI 6 website.

I was hoping I could create a few extra Properties for the page type and have them read-only.

Is this possible through code?

Every source I have found so far is just instructions to add a property through edit mode.

#190430
Edited, Apr 11, 2018 7:18
Vote:
 

Hi Matthew,

It's been a while since I worked on Epi 6 but, as I recall, there's no inbuilt mechanism for creating properties in a code-first way though you do have options. For our Epi 6 projects we used PageTypeBuilder to allow us to build content types through code (and to give us a strongly typed model).

If all else fails you could create an initialization module which makes the changes to the page types on startup though I'd look at PageTypeBuilder first.

#190459
Apr 11, 2018 11:40
Vote:
 

PageTypeBuilder was very helpful.

The codeplex files are downloadable and you can find all the published versions.

The only thing I am stuck on now Authenticating a user from a rest controller, is that something I should make another thread about?

#190553
Apr 12, 2018 3:06
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.