Subscribers only blog posts #104416

Merged
Anna Sirota merged 2 commits from post-is-subscribers-only into main 2024-07-02 15:49:12 +02:00
Owner

Adds is_subscribers_only column to Blog posts.

Posts with is_subscribers_only == True will

  • not show up in the RSS feed;
  • still show up at /blog/ (is_subscribers_only is directly accessible in the templates);
  • display a "Subscribe" banner in post's detail page instead of post's content;
    • comment section also won't be shown in this case.

The "everyone's" posts have a "Free" badge at /blog/ similar to the /characters/ list.
This can be easily changed (e.g. inverted to a "Subscription-only content" badge) because the flag is accessible in the templates, but I decided against coming up with how that would look like and instead copied the only existing visual option.

When logged in, but without active subscription:

2024-07-02-144910_725x749_scrot.png

When not logged in:

2024-07-02-144857_848x858_scrot.png

Blog post list shows "Free" badge on posts that don't have is_subscribers_only flag set to True (copied from Characters page):

2024-07-02-144833_584x814_scrot.png

Adds `is_subscribers_only` column to Blog posts. Posts with `is_subscribers_only == True` will * not show up in the RSS feed; * still show up at `/blog/` (`is_subscribers_only` is directly accessible in the templates); * display a "Subscribe" banner in post's detail page instead of post's content; * comment section also won't be shown in this case. The "everyone's" posts have a "Free" badge at `/blog/` similar to the `/characters/` list. This can be easily changed (e.g. inverted to a "Subscription-only content" badge) because the flag is accessible in the templates, but I decided against coming up with how that would look like and instead copied the only existing visual option. When logged in, but without active subscription: ![2024-07-02-144910_725x749_scrot.png](/attachments/9d612594-78bf-44f3-a131-1850c9bd296c) When not logged in: ![2024-07-02-144857_848x858_scrot.png](/attachments/b9445c1f-3980-49ef-87f9-253f64dce4f2) Blog post list shows "Free" badge on posts that don't have `is_subscribers_only` flag set to `True` (copied from Characters page): ![2024-07-02-144833_584x814_scrot.png](/attachments/191be4ef-6639-4a65-9ee3-cac0a9169115)
Anna Sirota added 1 commit 2024-07-02 15:30:33 +02:00
Anna Sirota added 1 commit 2024-07-02 15:32:20 +02:00
Anna Sirota changed title from WIP: Subscribers only blog posts to Subscribers only blog posts 2024-07-02 15:35:01 +02:00
Francesco Siddi approved these changes 2024-07-02 15:46:54 +02:00
Francesco Siddi left a comment
Owner

Looking great. Thank you!

Looking great. Thank you!
Anna Sirota merged commit f6ede7e3f7 into main 2024-07-02 15:49:12 +02:00
Anna Sirota deleted branch post-is-subscribers-only 2024-07-02 15:49:12 +02:00
Sign in to join this conversation.
No description provided.