Table of Contents

Interface ISiteModel

Namespace
ToSic.Sxc.Cms.Sites
Assembly
ToSic.Sxc.dll

BETA Site model for entities returned by the ToSic.Sxc.Cms.Sites DataSource.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface ISiteModel : ICanWrapData

Remarks

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

History

  • Introduced in v19.01

Properties

ContentAppId

The Content App Id of this Site and Zone.

int ContentAppId { get; }

Property Value

int

Created

The site creation date/time.

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

Property Value

DateTime

DefaultLanguage

The site Culture Code.

  • In Dnn it's from PortalInfo.CultureCode
  • in Oqtane it's from Site.CultureCode
string DefaultLanguage { get; }

Property Value

string

Guid

The site GUID.

  • In Dnn it's from PortalInfo.GUID
  • In Oqtane it's Guid.Empty as Oqtane doesn't have site GUIDs
Guid Guid { get; }

Property Value

Guid

Id

The site ID.

  • In Dnn it's from PortalInfo.PortalID
  • In Oqtane it's Site.SiteId
int Id { get; }

Property Value

int

Languages

The site languages, comma separated. Can be empty ever if a DefaultLanguage is set, if the site itself is not multi-language.

string Languages { get; }

Property Value

string

Modified

The site modification date/time.

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

Property Value

DateTime

Name

The site name.

  • In Dnn it's from PageInfo.PortalName
  • in Oqtane it's from Site.Name
string Name { get; }

Property Value

string

PrimaryAppId

The (technical) primary App, which contains things such as site metadata.

int PrimaryAppId { get; }

Property Value

int

Url

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

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

Property Value

string

ZoneId

The Zone ID, which is the ID of the 2sxc/EAV zone which applies to this site. It's usually different from the site ID, and in rare cases can be shared among multiple sites.

int ZoneId { get; }

Property Value

int