In Ghost v4.4 the the Subscription access setting is made to public.
I am looking for a way to access this settings within the theme.
Looks like there is an option members_signup_access the probable 3 values for this option is all, invite or none.
Can this option be access within theme something like this?
{{#if @site.signup_access_all}}
// everyone can signup so show a custom signup button along with other things
{{else if @site.signup_access_invite}}
// invite only, so show just a login link but not anything else
{{else}}
//signup is disabled, so do not show a login or sign up button
{{/if}}
For my use case example in v3 when there was an option to disabling members. This option was accessible within an {{if}} block as follows
{{#if @labs.members}}
// members feature is enabled, show custom signup link or form.
{{/if}}
I am adding a call to action for premium membership within the theme which shows monthly and yearly plans. I was looking for the possibility to conditionally show this only when signup access set to all.
Anyways, for now I will give instruction to the users to add or delete it manually.
Hope the new options will be available soon.
Also I want to mention another thing. which is not directly related to my question. Don’t know is it already in Ghost’s future road map or not. but access to the option’s in portal ( Plans available at signup) within the theme will be a plus.