How to show spcific elements based on specific Tier members?

Hi,
I am working on a project. I want to add PDF download buttons for a specific tier on the homepage.

I got only a solution for showing content for paid members. Like this:

{{#if @member.paid}}
This is for paid members
{{/if}}

How can I show content for “Gold” or “Platinum” members?

Best Regards
ElectronThemes

Something like this:

{{#match @member.subscriptions.[0].tier.name "=" "Silver Membership"}}
{{> silver}}
{{/match}}

Although you’ll want to watch out - a member can get into a state where they have multiple subscriptions, for example, if they switch plans.

5 Likes

This is working. Thank you

1 Like

Hi, this is great spent over a day looking for this, works, the documentation should be updated to reflect this, almost impossible to find. Ghost Forum is great!

2 Likes

Same here. Spent a few hours to find this pretty solution and still couldn’t find anything in the official docs. Thanks @Cathy_Sarisky .

1 Like

Be careful if you use it that a member may have multiple tiers, so it’s possible the first one won’t match.