Table of Contents

Class BlockPublishingSettings

Namespace
ToSic.Sxc.Cms.Publishing.Sys
Assembly
ToSic.Sxc.Cms.dll

Information about the current block/module having drafts allowed / disabled.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record BlockPublishingSettings : IEquatable<BlockPublishingSettings>
Inheritance
object
BlockPublishingSettings
Implements

Fields

AllowDraft

public bool AllowDraft

Field Value

bool

ForceDraft

public bool ForceDraft

Field Value

bool

Mode

public PublishingModes Mode

Field Value

PublishingModes

Properties

ModuleId

The ModuleId is required, as it's used to detect the settings.

public required int ModuleId { get; init; }

Property Value

int

Methods

Update(BlockPublishingSettings, PublishingModes)

Helper to repackage the result.

public static BlockPublishingSettings Update(BlockPublishingSettings options, PublishingModes mode)

Parameters

options BlockPublishingSettings
mode PublishingModes

Returns

BlockPublishingSettings