یہ صفحہ ابھی اردو میں دستیاب نہیں، اس لیے انگریزی میں دکھایا جا رہا ہے۔
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.
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.
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[][
{
"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;
overwriterefreshes 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