I currently post a single newsletter, once a week, with about 30% of posts being for paying members only. These appear on the front page of my site (Dawn theme) with a little yellow asterisk to indicate they are behind the paywall. I think this is handled by the partial loop.hbs
.
I want to create a second newsletter, restricted to paying members, with the intention of providing greater apparent value for money, so getting increasing paying subscriptions.
I understand how to do this. However, is there a way to control whether these also appear on the site homepage?
I cope with HTML, struggle with CSS, flounder with JS and don’t understand handlebars, but I think the presence of things in this list is determined in the first line of loop.hbs
…
{{visibility}} {{post_class}}
I’m not even sure I could prototype this with a local installation of Ghost.
Ideally, I’d want to differentiate between the two newsletters in the same list using some CSS.
Many thanks and Happy New Year
So you’re going to want to separate your thinking on how ghost handles newsletters from how it handles posts. A newsletter is a mailing list. Any post can be sent to any mailing list, and you make that decision when you choose “email only” or “publish and email” and select a newsletter (list of subscribers) when you publish.
Handlebars (which displays posts on the website) doesn’t know about whether a post was emailed or not, or who got it. It’ll show you anything published. You can use a tag on posts to indicate that they should be grouped differently, either using #get with a filter parameter, or editing the default routes.yaml. (The second works even on the starter plan.) Alternately, you might control post display by whether or not they’re for members, or featured, or something else.
1 Like
Many thanks @Cathy_Sarisky … I transferred after almost a decade using WP about 8 months ago and still have a post-oriented view of things. I’m on MagicPages so can meddle with the theme (once I can update my local installation!) freely.