Blog Article Title¶
Use blog_article_title
module to insert a title of the currently viewed article on the page. This module is available only within a blog article page.
Configuration parameters¶
none
Module source code¶
{% from "@macros/section_title.twig" import section_title %}
{% set article = ObjectApi.getBlogArticle(news_id) %}
{% set shopUrls = ObjectApi.getShopUrls() %}
{{ section_title(article.name, { cssClasses: 'blog-article-title' }) }}
<script type="application/ld+json">
{
"@context": [
"http://schema.org/",
{ "@base": "{{ shopUrls.mainPageUrl.absolute }}" }
],
"@id": "{{ article.url.relative }}",
"@type": "Article",
"headline": "{{ article.name }}"
}
</script>
Used Object Api methods¶
Used styles¶
Module configuration schema¶
[
{
"state": "unfolded",
"label": "General settings",
"elements": [
{
"type": "infobox",
"name": "infobox",
"options": {
"type": "blank",
"message": "#### Related settings in the admin panel%s- adding and editing blog entries on [the List of entries](%s)",
"placeholderValues": [
"\n",
"\/admin\/news\/list"
]
}
}
]
}
]