BlogArticle¶
The BlogArticle object represents a single blog article in the storefront.
classDiagram
direction LR
BlogArticle --> BlogCategoriesList
BlogArticle --> BlogCommentsList
BlogArticle --> BlogTagsList
BlogArticle --> BlogFilesList
BlogArticle --> Date
BlogArticle --> Image
BlogArticle --> BlogArticleUrl
BlogCategoriesList "1" --o "*" BlogCategory
BlogCommentsList "1" --o "*" BlogComment
BlogTagsList "1" --o "*" BlogTag
BlogFilesList "1" --o "*" BlogFile
class BlogCategory{
}
class BlogCategoriesList{
}
class BlogComment{
}
class BlogCommentsList{
}
class BlogTag{
}
class BlogTagsList{
}
class BlogFile{
}
class BlogFilesList{
}
class Date{
}
class Image{
}
class BlogArticleUrl{
}
class BlogArticle{
int id
string name
string content
string shortContent
string author
?Url image
?Image imageInfo
Date createdAt
BlogArticleUrl url
BlogCategoriesList categories
BlogCommentsList comments
BlogTagsList tags
BlogFilesList files
Metafields metafields
}
Properties¶
| Attribute name | Type | Description |
|---|---|---|
| id | int |
The unique identifier of the blog article |
| name | string |
The title of the blog article |
| content | string |
Content of the blog article. |
| shortContent | string |
Short content of the blog article. |
| author | string |
Author name of the blog article. |
| image (deprecated) | null|Url |
The Url object representing the image url of the blog article. |
| imageInfo | null|Image |
The Image object representing alternative name and url to image of current blog article. |
| createdAt | Date |
The Date object representing a date that article was created. |
| url | BlogArticleUrl |
The BlogArticleUrl object that represents the url to the blog article. |
| categories | BlogCategoriesList |
Reference to the BlogCategoriesList object that represents the category list of BlogCategory objects associated with this article. |
| comments | BlogCommentsList |
Reference to the BlogCommentsList object that represents the comment list of BlogComment objects associated with this article. |
| tags | BlogTagsList |
Reference to the BlogTagsList object that represents the tags list of BlogTag objects associated with this article. |
| files | BlogFilesList |
Reference to the BlogFilesList object that represents the files list of BlogFile objects associated with this article. |
| metafields | Metafields |
Reference to the Metafields object that provides access to the namespaced containers for key - value pairs of data. |
Examples¶
id property¶
name property¶
content property¶
shortContent property¶
author property¶
image property (deprecated; use imageInfo.url instead)¶
imageInfo property¶
createdAt property¶
url property¶
categories property¶
comments property¶
tags property¶
files property¶
<b>Leaflet</b>
<p>Read more about our strategy</p>
<a href="https://example.com/en/n/download/1/leaflet.pdf" title="leaflet.pdf">Download file</a>
<br>
<b>Voucher</b>
<p>A little discount for some of products</p>
<a href="https://example.com/en/n/download/2/voucher-prod.pdf" title="voucher-prod.pdf">Download file</a>
<br>