Skip to Content
User GuidesFor CMS Admins

Guide for CMS Admins

This guide covers managing content in the Loop Health Payload CMS admin interface.

Accessing the CMS

  1. Navigate to the admin URL (e.g., https://admin.loop.health/cms)
  2. Sign in with your Clerk credentials
  3. Your access level depends on your adminRole:
RoleAccess
adminFull access to all collections and settings
staffRead/write access to content collections
supportRead-only access

CMS Collections

Content Collections

CollectionPurposeGroup
PagesStatic pages (about, terms, privacy)Content
Blog PostsBlog articles with rich textContent
FAQsFrequently asked questionsContent
Help ArticlesHelp center documentationContent
TestimonialsCustomer testimonialsContent
Research PapersReferenced research papersContent
Research SummariesAI-generated research summariesContent

Catalog Collections

CollectionPurposeGroup
PeptidesPeptide compound catalogCatalog
StacksCurated protocol stacksCatalog
GoalsHealth optimization goalsCatalog
SupplementsSupplement productsCommerce
Supplement BundlesBundle dealsCommerce
COAsCertificates of AnalysisCatalog

Service Collections

CollectionPurposeGroup
Coaching TiersCoaching subscription levelsServices
Team MembersStaff profilesServices
CoursesEducational coursesServices
RetreatsWellness retreatsServices
Membership TiersMembership levelsServices
Live SessionsUpcoming live sessionsServices
Loop LiveRecorded live sessionsServices

Community Collections

CollectionPurposeGroup
Stack CommentsUser comments on stacksCommunity
Stack ReactionsUser reactions on stacksCommunity

System Collections

CollectionPurpose
UsersCMS admin users (auto-created from Clerk)
MediaUploaded images and files

Managing Peptides

Creating a Peptide Entry

  1. Go to Catalog → Peptides
  2. Click Create New
  3. Fill in:
    • Name — Display name (e.g., “BPC-157”)
    • Slug — URL-friendly identifier (e.g., “bpc-157”)
    • Category — Peptide category (recovery, growth-hormone, etc.)
    • Description — Rich text description
    • Benefits — Key benefits
    • Protocols — Recommended protocols with dosages
    • Research — Link to research papers
    • Commerce — BigCommerce product linking
  4. Publish to make it live

Peptide Fields

FieldTypeDescription
NameTextDisplay name
SlugTextURL identifier (unique)
CategorySelectPeptide category
DescriptionRich TextDetailed description
Short DescriptionTextSummary for cards
ImageMediaProduct image
BenefitsArrayList of benefits
Side EffectsArrayPotential side effects
ContraindicationsArrayKnown contraindications
ProtocolsArrayRecommended dosing protocols
Research PapersRelationshipLinked research papers
BigCommerce IDNumberE-commerce product ID
StatusSelectDraft, Published, Archived

Managing Stacks

Creating a Stack

  1. Go to Catalog → Stacks
  2. Click Create New
  3. Add:
    • Name — Stack name (e.g., “Recovery Stack”)
    • Description — What this stack is for
    • Items — Peptides/supplements included
    • Goals — Health goals this stack addresses
    • Featured Image — Stack cover image
  4. Publish to make it live

Stack Items

Each stack item includes:

  • Peptide — Link to a peptide entry
  • Dosage — Recommended dosage
  • Frequency — How often to take
  • Duration — How long to use
  • Notes — Special instructions

Managing Blog Posts

  1. Go to Content → Blog Posts
  2. Click Create New
  3. Write your post using the rich text editor (Lexical)
  4. Set:
    • Title — Post title
    • Slug — URL identifier
    • Category — Post category
    • Author — Author selection
    • Featured Image — Cover image
    • Meta Description — SEO description
  5. Publish or Save as Draft

Rich Text Editor

The CMS uses Lexical editor with support for:

  • Headings (H1–H6)
  • Bold, italic, underline, strikethrough
  • Ordered and unordered lists
  • Links
  • Images
  • Code blocks
  • Block quotes
  • Tables

Managing Help Articles

Help articles power the in-app help center:

  1. Go to Content → Help Articles
  2. Create articles organized by category:
    • Getting Started
    • Account & Billing
    • Lab Results
    • Protocols
    • Wearables
    • Luna AI
    • Prescriptions
  3. Each article has:
    • Title — Question or topic
    • Slug — URL identifier
    • Category — Help category
    • Content — Rich text answer
    • Order — Display order within category

Media Management

Uploading Media

  1. Go to Media
  2. Click Upload or drag and drop files
  3. Supported formats: JPEG, PNG, WebP, AVIF, SVG, PDF
  4. Images are automatically optimized for web delivery

S3 Storage

If configured, media files are stored in Amazon S3. Otherwise, they’re stored locally in the Payload uploads directory.


Cache Revalidation

When you publish or update content, the CMS automatically revalidates Next.js caches using makeRevalidateHook(). This ensures the consumer-facing site shows the latest content within seconds.

Revalidation Tags

CollectionCache Tag
Peptidespeptides
Stacksstacks
Goalsgoals
Blog Postsblog-posts
FAQsfaqs
Help Articleshelp-articles
Testimonialstestimonials
COAscoas

Seeding Data

To seed the CMS with initial data (peptides, stacks, goals):

pnpm --filter @loop/admin seed

Additional seed scripts:

pnpm --filter @loop/admin seed:help-articles pnpm --filter @loop/admin seed:treatments pnpm --filter @loop/admin seed:research

Tips

  • Always preview before publishing — use the Preview button to see how content looks
  • Use slugs consistently — slugs are used for URL routing and API references
  • Link research papers — peptide entries should reference supporting research
  • Upload high-quality images — they’ll be optimized automatically
  • Check for broken links — especially in rich text content