Content Warning Module #13643
Replies: 3 comments 16 replies
-
Late to the party but I just noticed this topic. Are we talking about something like an NSFW warning? I'd handle this on the client side: e.g. add a blur overlay onto the content item's Otherwise, I'd do this as a content part with an editor checkbox to add a CW to the whole item. Otherwise, perhaps a shortcode to use it for just selected pieces of text/body would work? |
Beta Was this translation helpful? Give feedback.
-
This can be achieved by creating a Part with ContentPicker field. Logic could be similar to FormPart where when a Part is attached, a ContentDriver will add a wrapper shape around the content. In wrapper you could render selected content item from content picker and show/hide/blur the original content using css/js |
Beta Was this translation helpful? Give feedback.
-
Here is an article that describes the kind of behavior I would like to implement including accessibility consideration: and here is the codepen from that article: https://codepen.io/aarongustafson/pen/QWZpqPe |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to create a module that would add a content warning (CW) feature. People use this type of feature a lot on platforms like Discord and Mastodon to hide content that some people might not want to see until they select that they want to see it. I think a feature like this would be especially useful in a blog site.
I'm trying to think about the best way to implement something like this so if anyone has any ideas let me know.
Some things I'm considering are:
Update on 2024-05-31: I've started building this. The repository is https://github.com/DrewBrasher/OrchardCoreModules
Beta Was this translation helpful? Give feedback.
All reactions