Interface ISiteModel
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
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
DefaultLanguage
The site Culture Code.
- In Dnn it's from
PortalInfo.CultureCode
- in Oqtane it's from
Site.CultureCode
string DefaultLanguage { get; }
Property Value
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
Id
The site ID.
- In Dnn it's from
PortalInfo.PortalID
- In Oqtane it's
Site.SiteId
int Id { get; }
Property Value
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
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
Name
The site name.
- In Dnn it's from
PageInfo.PortalName
- in Oqtane it's from
Site.Name
string Name { get; }
Property Value
PrimaryAppId
The (technical) primary App, which contains things such as site metadata.
int PrimaryAppId { get; }
Property Value
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
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; }