Skip to content

Commit

Permalink
fix: update changelogs for version 4.1.4 and fix author for meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
7underlines committed Jan 2, 2025
1 parent e2bedc7 commit 908991f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.1.4
- Fehler bei Author für Meta-Daten behoben [9](https://github.com/Werkstattl/OpenBlogware/issues/9)

# 4.1.3
- Fehler bei gemischten Suchergebnissen behoben [12](https://github.com/Werkstattl/OpenBlogware/issues/12)

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG_en-GB.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.1.4
- Fixed author for meta data [9](https://github.com/Werkstattl/OpenBlogware/issues/9)

# 4.1.3
- Fixed mixed search results [12](https://github.com/Werkstattl/OpenBlogware/issues/12)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "werkstattl/openblogware",
"description": "OpenBlogware: A Blog Module for Shopware 6.",
"version": "4.1.3",
"version": "4.1.4",
"type": "shopware-platform-plugin",
"keywords": ["blog", "news"],
"license":"MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/Page/Blog/BlogPageLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ private function loadBlogEntry(string $articleId, SalesChannelContext $context):
{
$criteria = (new Criteria([$articleId]))
->addAssociation('author.salutation')
->addAssociation('blogCategories');

->addAssociation('blogCategories')
->addAssociation('blogAuthor');
$this->eventDispatcher->dispatch(new BlogPageCriteriaEvent($articleId, $criteria, $context));

$blogEntry = $this->blogRepository
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/storefront/layout/meta.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"description": "{{ entry.translated.teaser }}",
"author": {
"@type": "Person",
"name": "{{ entry.author.translated.name }}"
"name": "{{ entry.blogAuthor.firstName }} {{ entry.blogAuthor.lastName }}"
},
{% if entry.media.thumbnails.elements|length %}
"image":[{% for item in entry.media.thumbnails.elements %}"{{ item.url }}"{{ loop.last ? '' : ',' }}{% endfor %}],{% endif %}
Expand Down

0 comments on commit 908991f

Please sign in to comment.