Table of Contents
These v19 docs are archived 🔒. Go to the latest docs home or try if this exact page is available in the latest docs.

Interface IPageModel

Namespace
ToSic.Sxc.Cms.Pages
Assembly
ToSic.Sxc.dll

BETA Data Model as is returned by the ToSic.Sxc.Cms.Pages DataSource.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IPageModel : ICanWrapData

Remarks

For detailed documentation, check the docs of the underlying objects:

History

  • Released v19.01
  • the previous internal implementation had a property called Visible which we finalized to IsNavigation to better clarify it purpose.
  • the previous internal implementation had a property called Clickable which we finalized to IsClickable to better clarify it purpose.

Properties

Children

IEnumerable<IPageModel> Children { get; }

Property Value

IEnumerable<IPageModel>

Created

The page creation date/time.

  • In Dnn it's from TabInfo.CreatedOnDate
  • in Oqtane it's from Page.CreatedOn
DateTime Created { get; }

Property Value

DateTime

Guid

The page GUID.

  • In Dnn it's from TabInfo.UniqueId
  • In Oqtane it's Guid.Empty as Oqtane doesn't have page GUIDs
Guid Guid { get; }

Property Value

Guid

HasChildren

Info if the page has sub-pages.

  • In Dnn it's from TabInfo.HasChildren
  • in Oqtane it's from Page.HasChildren
bool HasChildren { get; }

Property Value

bool

Remarks

Added in v15.01

Id

The page ID.

  • In Dnn it's from TabInfo.TabID
  • In Oqtane it's Page.PageId
int Id { get; }

Property Value

int

IsClickable

Determines if this item is clickable in the menu.

  • In Dnn it's from !TabInfo.DisableLink
  • in Oqtane it's from Page.IsClickable
bool IsClickable { get; }

Property Value

bool

Remarks

Added in v15.01

IsDeleted

The page delete-status. Normally you will only see not-deleted pages, so it should usually be false.

  • In Dnn it's from TabInfo.IsDeleted
  • in Oqtane it's from Page.IsDeleted
bool IsDeleted { get; }

Property Value

bool

Remarks

Added in v15.01

IsNavigation

The page visibility - if it should be shown in the menu.

  • In Dnn it's from TabInfo.IsVisible
  • in Oqtane it's from Page.IsNavigation
bool IsNavigation { get; }

Property Value

bool

Level

How deep this page is in the breadcrumb. The number is 1 based, so the top level is 1.

  • In Dnn it's from TabInfo.Level (+1)
  • in Oqtane it's from Page.Level (+1)
int Level { get; }

Property Value

int

Remarks

Added in v15.01

LinkTarget

WIP

  • In Dnn it's from TabInfo.TabSettings["LinkNewWindow"]and will be either _blank or `` (empty string)
  • In Oqtane it's not implemented an will be an empty string
string LinkTarget { get; }

Property Value

string

Remarks

Added in v15.02

Modified

The page modification date/time.

  • In Dnn it's from TabInfo.LastModifiedOnDate
  • in Oqtane it's from Page.ModifiedOn
DateTime Modified { get; }

Property Value

DateTime

Name

The page name.

  • In Dnn it's from TabInfo.Name
  • in Oqtane it's from Page.Name
string Name { get; }

Property Value

string

Order

Order of this item in a menu. It is 1 based, so the first item has Order 1.

  • In Dnn it's from TabInfo.TabOrder
  • in Oqtane it's from Page.Order
int Order { get; }

Property Value

int

Remarks

Added in v15.01

ParentId

The parent page ID.

It's usually 0 if it's a top level page.

  • In Dnn it's from TabInfo.ParentId
  • in Oqtane it's from Page.ParentId
int ParentId { get; }

Property Value

int

Path

The path with slashes to this page.

  • In Dnn it's from TabInfo.TabPath
  • in Oqtane it's from Page.Path
string Path { get; }

Property Value

string

Title

The page title.

  • In Dnn it's from TabInfo.Title
  • in Oqtane it's from Page.Title
string Title { get; }

Property Value

string

Url

The public url to this page (without any trailing slashes)

  • In Dnn it's from TabInf.FullUrl (last slash removed)
  • in Oqtane it's a combination of protocol, site-alias and path
string Url { get; }

Property Value

string