انتقل إلى المحتوى
تجربة مجانية 14 يومًا، بلا بطاقة9 لغات176 نوع عمل · 50 تطبيقًا
AR· USD
جرّب عرضًا حيًاابدأ التجربة المجانية

هذه الصفحة غير متاحة بلغة العربية بعد، لذا تُعرض بالإنجليزية.

Content packs: ready-made content

A content pack is data only — pages, FAQs, products, posts and projects keyed by slug, with company placeholders filled on import.

  • about 6 min

A content pack ships publishable content for a business type, for example legal pages, products with prices, blog posts and FAQs. Packs live under content/packs/<id>/ and are applied at Admin → Content packs — no rebuild.

content/packs/<id>/
pack.json          { id, name, description, business, version, locale }
categories.json    Category[]  (type + slug + name; others refer to the slug)
pages.json         Page[]      (rich text with {{company.*}} placeholders)
faqs.json          Faq[]
products/*.json    Product[]   (several files so writers can work in parallel)
posts/*.json       Post[]
projects/*.json    Project[]
pages.json (one page)
[
  {
    "slug": "privacy-policy",
    "title": "Privacy policy",
    "template": "legal",
    "html": "<p>{{company.legalName}} ({{company.email}}) respects your privacy. Updated {{today}}.</p>",
    "footerLabel": "Privacy"
  }
]
  • Everything is keyed by slug: applying a pack twice never duplicates; overwrite refreshes texts.
  • Placeholders: {{company.name}}, {{company.email}}, {{company.phone}}, {{company.whatsapp}}, {{company.legalName}}, {{company.address}}, {{company.city}}, {{company.country}}, {{company.trn}}, {{company.tradeLicense}}, {{site.url}}, {{today}}.
  • Every file is validated with zod (src/lib/content-packs/types.ts); product prices are in the base currency and converted to minor units on import.

Written from: src/lib/content-packs/types.ts, docs/PLUGIN-DEVELOPER-GUIDE.md