Skip to main content

integrationPost

Integration Post Object​

Represents a customer post imported from an external platform.

VariableDescription
integration_page_idID of the integration page where the post was imported
external_idID of the post in the external system
textThe content of the post
usernameName of the post creator
avatarURL of the post creator's avatar image
media_urlThe URL for the media (image or video)
thumbnail_urlThe thumbnail image URL
urlDirect link to the post on the external platform
product_variantsThe product variants tagged on the post, see below
productsThe tagged products, resolved (name, price, image, link): only on the posts of a featured-posts block, see below
posted_atDate and time when the post was posted
show_in_websiteBoolean indicating if the post should be displayed on the webshop
language_codeLanguage code of the post
tag_typeThe type of the post
comments_countComments on the post
likes_countLikes of the post
reshare_countReshares of the post

Tagged products​

A post holds only the tags of the products shown in it. product_variants has one entry per tag:

VariableDescription
id, variant_idID of the tagged product variant
sku, mpn, upc, eanCodes of the variant
pos_x, pos_yWhere 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.

VariableDescription
variant_id, product_idIDs of the variant and of the product
titleThe product's name in the current language
priceThe 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_priceThe price before the discount, same shape
discount_priceThe discount price, same shape; null without a discount
imageThe first product image (the main one first): src (720 px wide) and srcset
urlThe product page on the current sale channel: /product/{id}-{slug}/{variant}
pos_x, pos_yThe 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.