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
-
objectBlockPublishingSettings
- Implements
Fields
AllowDraft
public bool AllowDraft
Field Value
ForceDraft
public bool ForceDraft
Field Value
Mode
public PublishingModes Mode
Field Value
Properties
ModuleId
The ModuleId is required, as it's used to detect the settings.
public required int ModuleId { get; init; }
Property Value
Methods
Update(BlockPublishingSettings, PublishingModes)
Helper to repackage the result.
public static BlockPublishingSettings Update(BlockPublishingSettings options, PublishingModes mode)
Parameters
optionsBlockPublishingSettingsmodePublishingModes