DrewBrasher.OrchardCore.ContentWarning
1.0.1
See the version list below for details.
dotnet add package DrewBrasher.OrchardCore.ContentWarning --version 1.0.1
NuGet\Install-Package DrewBrasher.OrchardCore.ContentWarning -Version 1.0.1
<PackageReference Include="DrewBrasher.OrchardCore.ContentWarning" Version="1.0.1" />
paket add DrewBrasher.OrchardCore.ContentWarning --version 1.0.1
#r "nuget: DrewBrasher.OrchardCore.ContentWarning, 1.0.1"
// Install DrewBrasher.OrchardCore.ContentWarning as a Cake Addin #addin nuget:?package=DrewBrasher.OrchardCore.ContentWarning&version=1.0.1 // Install DrewBrasher.OrchardCore.ContentWarning as a Cake Tool #tool nuget:?package=DrewBrasher.OrchardCore.ContentWarning&version=1.0.1
Content Warning Module
An Orchard Core CMS Module that allows you to put a content warning around some content so that users can decide if they want to see it or not.
There is a discussion about this module here: https://github.com/OrchardCMS/OrchardCore/discussions/13643
NuGet Package
Usage
Getting Started
- Add a reference to this module in your web application.
- Enable the "Content Warning" feature.
Shortcode
[content_warning 'warning-message'] some sensitive content [/content_warning]
or
[cw 'warning-message'] some sensitive content [/cw]
Content Part
- Add the Content Warning Part to any Content Types you would like to be able to put a warning around.
- Check the "Show Warning" box and enter the warning message that you want the user to initially see instead of the content.
Credits
The JavaScript and CSS are based on the https://www.aaron-gustafson.com/notebook/considering-content-warnings-in-html/ blog post by Aaron Gustafson.
I started this module during two Ochard Core Pair Programming by Lombiq sessions with Zoltán Lehóczky that were live streamed. You can watch them here:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- OrchardCore.ContentManagement (>= 1.8.3)
- OrchardCore.ContentTypes.Abstractions (>= 1.8.3)
- OrchardCore.DisplayManagement (>= 1.8.3)
- OrchardCore.Infrastructure (>= 1.8.3)
- OrchardCore.Module.Targets (>= 1.8.3)
- OrchardCore.Shortcodes.Abstractions (>= 1.8.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed issue with shortcode not working in MarkdownBody when sanitization is on.