This theme component allows site admins to show a login prompt that covers the topic contents in specific categories as a way to encourage readers to sign up and log in
Go to file
chapoi beaccbb89a
FEATURE: add tag-based gated content (#13)
* add tags + minor css change

* Update settings.yml

* fix tag filtering

* change var scope

* FIX: Allow for topics with no tags

Topics will sometimes have a null amount of tags. This change allows for those situations.

* DEV: Add tests for gated tags

* Joffrey's idiotmatic way

Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: Jamie Wilson <jamie.wilson@discourse.org>
2022-09-02 15:56:41 +02:00
.github/workflows DEV: Update CI workflows (#11) 2022-06-17 22:23:39 +02:00
common FEATURE: add tag-based gated content (#13) 2022-09-02 15:56:41 +02:00
javascripts/discourse FEATURE: add tag-based gated content (#13) 2022-09-02 15:56:41 +02:00
locales Use theme translations and fix login-link id (#5) 2022-04-13 09:51:23 -06:00
test/acceptance FEATURE: add tag-based gated content (#13) 2022-09-02 15:56:41 +02:00
.eslintrc DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
.gitignore DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
.prettierrc DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
.template-lintrc.js DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
LICENSE Initial commit 2022-04-05 11:28:13 -06:00
README.md Update readme (#10) 2022-04-27 10:56:42 -06:00
about.json DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
package.json DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00
settings.yml FEATURE: add tag-based gated content (#13) 2022-09-02 15:56:41 +02:00
yarn.lock DEV: Add CI setup and fix linting issues (#9) 2022-04-27 00:07:21 -06:00

README.md

discourse-gated-topics-in-category

This theme component allows site admins to show a login prompt that covers the topic contents in specific categories as a way to encourage readers to sign up and log in.

image
📖 Learn More https://meta.discourse.org/t/gated-topics-in-category/225454
Install Guide How to install a theme or theme component
🧠 New to Discourse Themes? Beginners guide to using Discourse Themes