مواد پر جائیں
14 دن کا مفت ٹرائل، کارڈ کی ضرورت نہیں9 زبانیں176 کاروباری اقسام · 50 ایپس
UR· USD
لائیو ڈیمو آزمائیںمفت آزمائش شروع کریں

یہ صفحہ ابھی اردو میں دستیاب نہیں، اس لیے انگریزی میں دکھایا جا رہا ہے۔

Industry and document templates

An industry template is a whole website for a trade, applied by the website-starter engine; a document template is a print layout. Both are plain data, checked field by field.

  • about 8 min

Industry template (`zmle.industry/1`)

starter follows the platform's website-starter shape (src/lib/website-starters/types.ts): label, Lucide icon, schema.org type, look, tagline, about, keywords, calls to action, hero, why, steps, coverage, categories, 1–40 services, FAQs, about page, contact and closing texts. Unknown keys are refused.

examples/marketplace/industry-bike-leasing/industry.json (one service)
{
  "slug": "e-bike-lease",
  "title": "E-Bike Monthly Lease",
  "short": "A city e-bike with lock, lights and a charger for a monthly fee that includes servicing and a replacement if it fails.",
  "icon": "Bike",
  "category": "lease",
  "priceUnit": "per month",
  "features": ["Lock, lights and charger", "Servicing included", "Replacement within days"],
  "featured": true
}
  • Plain text only: no HTML, no javascript:, no {{ }}. The placeholders {name}, {area} and {inCity} are filled at install.
  • Every service's category must be one of categories.
  • Write honestly: no invented years in business, certifications, ratings or prices — prices are the owner's to set.
  • Install backs up the current website rows, then writes pages, menus, services and FAQs in reset mode; customers, orders and invoices are never touched, and colours change only while the site still has a default theme.

Document template (`zmle.document/1`)

examples/marketplace/document-clean-invoice/document.json (shape)
{
  "format": "zmle.document/1",
  "name": "Clean invoice",
  "version": "1.0.0",
  "kind": "invoice",
  "layout": { "version": 2, "page": { "tableStyle": "light" }, "sections": [ { "id": "header-162", "type": "header", "enabled": true, "options": {} } ] }
}

kind is quotation, invoice, receipt or all. Design the layout in Admin → Documents → Designs and copy its JSON. The platform normalises it and runs the legal-content check of the kind (an invoice must still print what tax law requires); free-form canvas layouts are refused. Install adds the design under Documents → Designs (not as the default); uninstall removes it unless the owner made it the default.

Written from: docs/DEVELOPERS/TEMPLATES-SPEC.md, examples/marketplace/industry-bike-leasing/industry.json, examples/marketplace/document-clean-invoice/document.json, src/lib/marketplace/packages.ts, src/lib/marketplace/install.ts