Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
/blogslist_blogs?category={slug} query parameter and pagination via ?page={n} and?page_size={n}.| Variable | Type |
|---|---|
blogs | PaginatedBlogPosts |
categories | PaginatedBlogCategories |
store | Store |
session | Session |
| Property | Description |
|---|---|
results | List of BlogPost for the current page |
count | Total number of matching posts |
page | Current page number |
page_size | Blogs per page (default 24) |
pages_count | Total page count |
| Property | Description |
|---|---|
results | List of BlogCategory |
count / page / page_size / pages_count | Same shape as above |
| Property | Description |
|---|---|
id | Category ID |
name | Localized category name |
slug | URL slug โ use as ?category={slug} |
description | Optional description |
icon | Optional icon URL |
| Property | Description |
|---|---|
id | Post ID |
title | Post title |
slug | URL slug โ link as /blogs/{slug} |
snippet | Short summary (HTML) |
published_at | ISO date string |
cover | BlogPostMedia (use cover.image.medium) |
category | BlogCategoryShort (name, slug) โ optional |
tags | List of BlogTag (tag.name, tag.slug) |
recommended_product_ids | List of product IDs (resolved into related_products on the detail page only) |
?category={slug} query parameter. When nocategory is set, the backend defaults to the first category incategories.results โ the listing is never empty as long as at least one?page=1 when the user changes category โ pagination of the