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.
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.
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?