Content Library
Members-only files, videos, and links gated by Ghost membership tier.
The Content Library is a gated content area for your Ghost members. Upload files, link videos, drop in external resources, then tag each item with the tier that opens it. A free member sees the free stuff. A Premium member sees everything. The whole thing renders on a page of your Ghost site, and access rides on the member's existing Ghost login, so nobody has to make a second account.
You need Ghost membership tiers for this. The library is built on Ghost's own membership system. Connect Ghost and set up at least one paid tier first (see Ghost Integration). With no tiers, there is nothing to gate against.
Setup
Connect Ghost first
Add your Ghost Admin API key in Settings → Integrations. The library reads your membership tiers from Ghost and uses the same login to verify members, so this has to be in place before anything else works.
Turn on the Content Library
Flip the Content Library toggle in Settings → Integrations. Mytho syncs your Ghost membership tiers into access levels and adds Library and Members items to the dashboard sidebar.
Check your access levels
Go to Library → Access levels. Your Ghost tiers are already there. Reorder them with the up and down controls, since a higher level includes access to everything below it.
Add categories (optional)
Group content under Library → Categories. Categories can nest one level deep, so a "Tutorials" parent can hold "Beginner" and "Advanced" beneath it.
Add content items
Create an item, give it a title and description, attach files or a video link, and pick the tier that opens it. Choose No tier to make it open to everyone.
Embed it on your site
Drop the library snippet onto a Ghost page. Members see it render in place, no separate login required.
Enabling the library
The library is off by default. Turn it on in Settings → Integrations with the Content Library toggle. Enabling it does two things:
- Pulls your Ghost membership tiers in and creates a matching access level for each one
- Adds Library and Members to your dashboard sidebar
The same screen shows your embed code and a membership URL field (more on both below).
Access levels and tiers
Access levels are the tiers content is locked to. When you enable the library, Mytho mirrors your Ghost tiers into access levels automatically, so you usually do not have to create any by hand.
Manage them under Library → Access levels:
- Order matters. Levels are ranked top to bottom. A higher level includes access to every level beneath it, so a Premium member can open Free and Basic content too.
- Rename a level, give it a colour, or reorder it with the up/down controls.
- You can add extra levels manually, but most shops just use the ones synced from Ghost.
Categories
Categories keep a growing library tidy. Set them up under Library → Categories. They display as a tree and can nest one level deep, so a parent like "Templates" can hold "Logos" and "Fonts" underneath. Categories are organisation only, they do not control access. Tiers do that.
Content items
An item is a single entry in the library: a download bundle, a video, a link, or any mix. Add one from Library with the New item button. Each item has:
- Title and description shown on the card and detail view
- Files uploaded to your storage (counts against your 5GB, unless you've connected your own R2 or S3 bucket)
- Video or external link a YouTube or Vimeo link plays embedded in the library; any other link shows as a visit button. Files work alongside it
- Category to file it under
- Required tier the access level that opens it
- Visibility a quick hide toggle to draft an item without deleting it
- Thumbnail picked from your media library
The required tier is the gate. Set it to a level and only members at that level or higher can open the item. Pick No tier and the item is open to everyone who can see the library, signed in or not.
Leaving the tier blank is the easiest way to publish a free sample. Mix a couple of open items in with the gated ones and non-members get a taste of what they are paying for.
Embedding the library
The library lives on a page of your Ghost site, not on Mytho. Create a page in Ghost Admin, add an HTML card, and paste the snippet from Settings → Integrations (your PUBLIC_ID is filled in for you):
<div id="mytho-library" data-shop="PUBLIC_ID"></div>
<script src="https://cloud.mytho.dev/library.js"></script>The script finds the <div>, loads your content, and renders the grid with category filters, inline video and audio players, image previews, and download buttons. Publish the page and you are done.
The library also follows your shop's appearance. If you've turned on light and dark mode in the storefront editor, the library switches palettes with your site the same way the shop does, so it never sits as a dark box on a light page.
How members get in
Access is verified through the member's existing Ghost session. No second login, no separate Mytho account for your members. When a logged-in Ghost member loads the page, the script checks their session against your tier mappings and opens whatever their level allows. Downloads use short-lived signed URLs, so a shared link stops working before it can make the rounds.
Locked items
Content above a visitor's tier (or content shown to someone who is not signed in) stays locked. A locked card shows a tier badge naming the level it needs and an upgrade link instead of a download button. Set where that link points with the membership URL field in Settings → Integrations, usually your Ghost membership or pricing page, so an interested visitor lands one click from subscribing.
Last updated