I would like to know if I can create a page that automatically list members of a certain tier, to function like a donors page.
I am not sure how the #get code functions.
Thank you in advance!
I would like to know if I can create a page that automatically list members of a certain tier, to function like a donors page.
I am not sure how the #get code functions.
Thank you in advance!
I don’t believe this is possible with just handlebars. You’ve only got access to the member’s own data.
Some options
1- Do it manually (yeah, I know, but unless you have a TON of people in the tier, none of the options below are going to pay off in terms of time savings)
2- Set up a cloud function/Zap/whatever somewhere that catches a webhook from Ghost for whenever you get a new subscription on this tier. Then add them to a Google sheet / database / Airtable / whatever. [You’ll want to think about synchronization - do you delete them when the subscription lapses also?]
Then how do you get this into Ghost? Either:
a) Have that automation update the post in Ghost (using the Admin API) or
b) Have each visitor’s browser retrieve the content and display it, using the spreadsheet / database’s own API. [So clientside javascript, using a read-only key.]
I see.
OK I will look at Zapier, thank you very much!