Table of Contents

Class CreateWebPageEventData

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Contains the business data for web page creation events.

public sealed class CreateWebPageEventData
Inheritance
object
CreateWebPageEventData
Extension Methods

Remarks

This class holds event-specific data that is shared between before and after create web page events. It represents the business context of the event (web page details) and is separate from cross-handler communication state.

Constructors

CreateWebPageEventData()

Initializes a new instance of the CreateWebPageEventData class.

public CreateWebPageEventData()

Remarks

Intended for testing and manual instantiation scenarios.

Properties

AccessSettings

Access control settings for the web page item.

public ContentAccessSettings AccessSettings { get; set; }

Property Value

ContentAccessSettings

ContentItemData

Content item data.

public ContentItemData ContentItemData { get; init; }

Property Value

ContentItemData

ContentLanguageID

Content language identifier.

public int ContentLanguageID { get; init; }

Property Value

int

ContentLanguageName

Content language name.

public string ContentLanguageName { get; init; }

Property Value

string

ContentTypeID

Content type identifier.

public int ContentTypeID { get; init; }

Property Value

int

ContentTypeName

Content type name.

public string ContentTypeName { get; init; }

Property Value

string

DisplayName

Web page display name, used to identify the item in user interface.

public string DisplayName { get; set; }

Property Value

string

Guid

Web page unique identifier.

public Guid? Guid { get; init; }

Property Value

Guid?

Remarks

The value is available only in After event.

ID

Web page identifier.

public int? ID { get; init; }

Property Value

int?

Remarks

The value is available only in After event.

Name

Code name of the web page.

public string Name { get; set; }

Property Value

string

Order

Web page order.

public int Order { get; init; }

Property Value

int

ParentID

Web page parent identifier.

public int ParentID { get; init; }

Property Value

int

ScheduledPublishWhen

Date and time when the web page should be published.

public DateTime? ScheduledPublishWhen { get; init; }

Property Value

DateTime?

ScheduledUnpublishWhen

Date and time when the web page should be unpublished.

public DateTime? ScheduledUnpublishWhen { get; init; }

Property Value

DateTime?

TreePath

Web page tree path.

public string TreePath { get; init; }

Property Value

string

Remarks

The value is available only in After event.

UrlPathSlug

Web page URL path slug.

public string UrlPathSlug { get; set; }

Property Value

string

Remarks

If the web page is accessible via URL this will be used as its URL slug. Normalized DisplayName value will be used if the value is not set.

VersionStatus

Version status in which the web page was created.

public VersionStatus VersionStatus { get; init; }

Property Value

VersionStatus

WebsiteChannelID

Website channel identifier.

public int WebsiteChannelID { get; init; }

Property Value

int

WebsiteChannelName

Website channel name.

public string WebsiteChannelName { get; init; }

Property Value

string