Skip to content

Commit

Permalink
BUGFIX: Adapt Fusion include setting
Browse files Browse the repository at this point in the history
The settings path to auto include fusion has change in Neos 3.0 and this
was not yet reflected in this package.

Additionally some small improvements in the Search template.
  • Loading branch information
kitsunet committed Mar 7, 2017
1 parent 93951a3 commit c333031
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Configuration/Settings.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Neos:
Neos:
typoScript:
fusion:
autoInclude:
Flowpack.SimpleSearch.ContentRepositoryAdaptor: true
ContentRepository:
Expand Down
14 changes: 7 additions & 7 deletions Resources/Private/Templates/NodeTypes/Search.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@

{namespace neos=Neos\Neos\ViewHelpers}
{namespace ts=Neos\Fusion\ViewHelpers}
{namespace typo3cr=Neos\ContentRepository\ViewHelpers}
{namespace fusion=Neos\Fusion\ViewHelpers}
{namespace cr=Neos\ContentRepository\ViewHelpers}
<div class="flowpack-simplesearch-search">
<form method="POST">
<input name="search[word]" value="{searchWord}" />
<input type="hidden" name="--typo3-typo3cr-viewhelpers-widget-paginateviewhelper[currentPage]" value="" />
<input type="hidden" name="--neos-contentrepository-viewhelpers-widget-paginateviewhelper[currentPage]" value="" />
<button type="submit">&gt;</button>
</form>
<hr />
<div class="search-results">
<f:if condition="{searchWord}">
<f:if condition="{searchResults -> f:count()}">
<dl>
<typo3cr:widget.paginate nodes="{searchResults}" as="paginatedNodes" configuration="{itemsPerPage: 5}">
<cr:widget.paginate nodes="{searchResults}" as="paginatedNodes" configuration="{itemsPerPage: 5}">
<f:for each="{paginatedNodes}" as="searchResult">
<dt>
<neos:link.node node="{searchResult}">{searchResult.fullLabel}</neos:link.node>
</dt>

<dd>
<ts:render path="searchResultContent" context="{searchResult: searchResult}" />
<fusion:render path="searchResultContent" context="{searchResult: searchResult}" />
</dd>
<hr />
</f:for>
</typo3cr:widget.paginate>
</cr:widget.paginate>
</dl>
</f:if>
</f:if>
</div>
</div>
</div>

0 comments on commit c333031

Please sign in to comment.