-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: Adapt Fusion include setting
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
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">></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> |