Try our conversational search powered by Generative AI!

Breaking change: PageTypeID in PageData


Episerver 11 PageData had property PageTypeID.

How can i fetch this property having PageData?

Is it ContentTypeId?

        // Summary:
        //     Gets or sets the content type ID that this EPiServer.Core.ContentData is an instance
        //     of.
        public virtual int ContentTypeID
                return (int)(GetValue("PageTypeID") ?? ((object)0));
                SetValue("PageTypeID", value);
Edited, Dec 07, 2022 7:48

Yes. ContentTypeID should be the same as PageTypeID just with more consistent naming.

Dec 07, 2022 9:29
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.
* 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.