Skip to content

Commit

Permalink
[BUGFIX] Correct fluid namespace definitions - fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Apr 22, 2019
1 parent ab732a0 commit b5c26c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/Partials/List.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="tx-blog-post-list {class}" xmlns:f="http://www.w3.org/1999/html" xmlns:blog="http://typo3.org/ns/T3G/AgencyPack/Blog/ViewHelpers">
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:blog="http://typo3.org/ns/T3G/AgencyPack/Blog/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="tx-blog-post-list {class}">
<f:if condition="{posts}">
<f:then>
<f:if condition="{posts->f:count()} > {settings.lists.pagination.itemsPerPage}">
Expand All @@ -17,16 +18,15 @@
</f:else>
</f:if>
</div>

<f:section name="PaginatePosts">
<f:widget.paginate objects="{posts}" as="paginatedPosts" configuration="{itemsPerPage: pagination.itemsPerPage, insertAbove: pagination.insertAbove, insertBelow: pagination.insertBelow, maximumNumberOfLinks: pagination.maximumNumberOfLinks, addQueryStringMethod: 'GET'}">
<f:render section="ListPosts" arguments="{posts: paginatedPosts}" />
</f:widget.paginate>
</f:section>

<f:section name="ListPosts">
<f:for each="{posts}" as="post">
<blog:cache post="{post}" />
<f:render partial="List/Post" arguments="{_all}" />
</f:for>
</f:section>
</html>
6 changes: 4 additions & 2 deletions Resources/Private/Partials/SimpleList.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="tx-blog-post-list" xmlns:f="http://www.w3.org/1999/html">
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:blog="http://typo3.org/ns/T3G/AgencyPack/Blog/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="tx-blog-post-list">
<ul>
<f:for each="{posts}" as="post">
<li>{f:format.date(format: '{settings.lists.posts.dateFormat}', date: post.publishDate)} <blog:link.post post="{post}" /></li>
</f:for>
</ul>
</div>
</div>
</html>
4 changes: 1 addition & 3 deletions Resources/Private/Templates/Backend/SocialImageWizard.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers">

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="hidden">
<span id="author">{postData.authors.0}</span>
<img src="/{postData.image}" id="posterImage">
Expand Down

0 comments on commit b5c26c0

Please sign in to comment.