Nucleus .Net Core CMS

ViewModels.Layout Class

Namespace: Nucleus.ViewFeatures.ViewModels
Assembly: Nucleus.ViewFeatures.dll
View model for Nucleus layouts.

Constructor

Nucleus.ViewFeatures.ViewModels.Layout Constructor

Nucleus.ViewFeatures.ViewModels.Layout (Context context)
Create a new instance of this class.
Parameters
Name Type
context Nucleus.Abstractions.Models.Context

Properties

Context Property

Encapsulates information about the current request.
Remarks
Use the Context object to access Nucleus Site and Page information for the current request.

IsEditing Property

Specifies whether the user has enabled inline edit mode.

CanEdit Property

Specifies whether the current user has edit rights for the current page.

DefaultPageUri Property

SiteIconPath Property

Gets the current request's site icon. This value can be empty, which means that no icon has been selected for the site.

SiteCssFilePath Property

Gets the current request's site custom CSS file. This value can be empty, which means that no custom CSS file has been selected for the site.