Skip to content

Commit 08ad8f3

Browse files
committed
Merge pull request #88 from pedroresende/EZP-22861
Fix EZP-22861 - DemoBundle Blog Post shows contentInfo.publishedDate instead of publication_date field
2 parents 9d6c247 + 417fbc3 commit 08ad8f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/views/full/blog_post.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<div class="attribute-byline">
2222
<span class="date">
23-
{{ location.contentInfo.publishedDate|localizeddate( 'short', 'short', app.request.locale ) }}
23+
{{ ez_field_value( content, 'publication_date' )|localizeddate( 'short', 'short', app.request.locale ) }}
2424
</span>
2525

2626
<span class="author">{{ author.contentInfo.name }}</span>

Resources/views/line/blog_post.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
<div class="attribute-byline with-comments">
17-
<span class="date">{{ location.contentInfo.publishedDate|localizeddate( 'short', 'short', app.request.locale )}}</span>
17+
<span class="date">{{ ez_field_value( content, 'publication_date' )|localizeddate( 'short', 'short', app.request.locale ) }}</span>
1818
<span class="author">{{ author.contentInfo.name }}</span>
1919

2020
<span class="tags"> {{ "Tags:"|trans }}

0 commit comments

Comments
 (0)