Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
emole-theme CLI.| File | Page | Data context |
|---|---|---|
templates/product.json | Product | product, products (same category) |
templates/category.json | Category | category, categories |
templates/topic.json | Content page | topic |
sections/<name>/section.html + schema.json | Your sections | The page context above + the section's settings |
@. position: full, start (first column) or end (second column).[
{ "section": "@breadcrumb", "position": "full" },
{ "section": "@gallery", "position": "start" },
{ "section": "@addtocart", "position": "end" },
{ "section": "size-guide", "position": "full", "settings": { "title": "Size guide" } }
].ept-row, .ept-start, .ept-end and .ept-full.sections/size-guide/schema.json:{
"name": "Size guide",
"schema": [
{ "key": "title", "label": "Title", "type": "text", "default": "Size guide" },
{ "key": "image", "label": "Chart", "type": "image" }
]
}sections/size-guide/section.html:| Page | Variables |
|---|---|
| Product | {{product.name}} {{product.price}} {{product.oldPrice}} {{product.image}} {{product.sku}}, {{#each products}} |
| Category | {{category.name}} {{category.image}}, {{#each categories}} |
| Content page | {{topic.title}} |
