Hide particular nav item if paid member? 👻

Hey folks!
As someone who’s spent a good chunk of his career managing online communities, the amount of help/support from the members here is second to none. I’m hoping someone can help point me in the right direction.

TL’DR: I’m trying to show/hide nav items based on someone’s member status. It would look like this:

For context, I’m building a newsletter that will have two versions: free and paid

Due to the differences in the free/paid versions, the best way to go about this is to publish two separate posts, then send each newsletter separately. I’d like the nav to display a link to the proper category based on whether or not the user is a paid member or not.

Is this possible? I’m using the Casper theme on a Ghost hosted instance, if that matters.

Thanks in advance! :pray:

Sorry to bump this - this is the one thing stopping me from launching.

Is this a possibility? Does anyone know?


I think the easiest way is to move the membership-type-dependent item to the beginning of the navigation so you can use handlebars to choose the item

{{#if @member.paid}}
<li>{{!-- pro --}}</li>
{{else if @member}}
<li>{{!-- free --}}</li>
{{!-- navigation loop --}}

I’m 100% going to try this. Thank you so much!