Nucleus .Net Core CMS

Managers.IContentManager Interface

Namespace: Nucleus.Abstractions.Managers
Assembly: Nucleus.Abstractions.dll
Defines the interface for the content manager.
Modules can store their content (Html, or another format) using the content manager. For example, the TextHtml and MultiContent modules use the content manager to save and retrieve their content, instead of using their own database tables. Get an instance of this class from dependency injection by including a parameter in your class constructor.
Delete (Content content)
Delete the specified content.
Parameters
Name Type
content Nucleus.Abstractions.Models.Content
Get (Guid id)
Get content specified by id.
Parameters
Name Type
id Guid
List (PageModule pageModule)
List all content for a module, sorted by SortOrder.
Parameters
Name Type
pageModule Nucleus.Abstractions.Models.PageModule
MoveDown (PageModule module, Guid contentId)
Update the SortOrder of the content specifed by id by swapping it with the next-highest SortOrder.
Parameters
Name Type
module Nucleus.Abstractions.Models.PageModule
contentId Guid
MoveUp (PageModule module, Guid contentId)
Update the SortOrder of the content specifed by id by swapping it with the previous SortOrder.
Parameters
Name Type
module Nucleus.Abstractions.Models.PageModule
contentId Guid
Save (PageModule pageModule, Content content)
Save the specified content.