integrationPost
Integration Post Object
Represents a customer post imported from an external platform.
| Variable | Description |
|---|---|
integration_page_id | ID of the integration page where the post was imported |
external_id | ID of the post in the external system |
text | The content of the post |
username | Name of the post creator |
avatar | URL of the post creator's avatar image |
media_url | The URL for the media (image or video) |
thumbnail_url | The thumbnail image URL |
url | Direct link to the post on the external platform |
product_variants | The product variants tagged on the post, see below |
products | The tagged products, resolved (name, price, image, link): only on the posts of a featured-posts block, see below |
posted_at | Date and time when the post was posted |
show_in_website | Boolean indicating if the post should be displayed on the webshop |
language_code | Language code of the post |
tag_type | The type of the post |
comments_count | Comments on the post |
likes_count | Likes of the post |
reshare_count | Reshares of the post |
Tagged products
A post holds only the tags of the products shown in it. product_variants has one entry per tag:
| Variable | Description |
|---|---|
id, variant_id | ID of the tagged product variant |
sku, mpn, upc, ean | Codes of the variant |
pos_x, pos_y | Where the tag sits on the post's image |
The posts of a featured-posts block (section.posts) also have products: the engine resolves the tagged variants in
the current language and currency, one element per tag, in the order of the tags. A variant that is not shown in the sale
channel (hidden, or not for sale in its warehouses) is left out, so products can be shorter than product_variants.
| Variable | Description |
|---|---|
variant_id, product_id | IDs of the variant and of the product |
title | The product's name in the current language |
price | The price the customer pays (the discount price when there is one): amount, currency, formatted (e.g. 29 990 Ft, as on the product card) |
original_price | The price before the discount, same shape |
discount_price | The discount price, same shape; null without a discount |
image | The first product image (the main one first): src (720 px wide) and srcset |
url | The product page on the current sale channel: /product/{id}-{slug}/{variant} |
pos_x, pos_y | The tag's place on the post's image |
{% for post in section.posts %}
{% for product in post.products %}
<a href="{{ product.url }}" data-x="{{ product.pos_x }}" data-y="{{ product.pos_y }}">
<img src="{{ product.image.src }}" srcset="{{ product.image.srcset }}" alt="{{ product.title }}">
{{ product.title }} {{ product.discount_price ? product.discount_price.formatted : product.price.formatted }}
</a>
{% endfor %}
{% endfor %}
The posts of a dynamic block (IntegrationPost) are the raw posts, without products.