Reputation: 1171
I installed Indexed Search extension and used it normally. It can show the search result but if the there is pagination on search result page, those paging buttons "Page 1, page 2,... next" not working. When i click on those paging buttons, it go to blank page.
Here's the template i use indexed search:
<!-- Search -->
<div class="search-wrapper">
<div class="header-inner-right">
<ul class="menu-icons-list">
<li class="menu-icons">
<i class="menu-icons-style search search-btn fa fa-search"></i>
<form class="search-form" method="post" id="tx_indexedsearch" action="index.php?id=103">
<div class="tx-indexedsearch-hidden-fields">
<input type="hidden" name="search[_sections]" value="0">
<input type="hidden" name="search[_freeIndexUid]" id="tx_indexedsearch_freeIndexUid" value="_">
<input type="hidden" name="search[pointer]" id="tx_indexedsearch_pointer" value="0">
<input type="hidden" name="search[ext]" value="">
<input type="hidden" name="search[stype]" value="1">
<input type="hidden" name="search[defOp]" value="0">
<input type="hidden" name="search[media]" value="-1">
<input type="hidden" name="search[order]" value="rank_flag">
<input type="hidden" name="search[group]" value="flat">
<input type="hidden" name="search[lang]" value="-1">
<input type="hidden" name="search[desc]" value="0">
<input type="hidden" name="search[results]" value="30">
</div>
<div class="input-group animated fadeInDown">
<input type="search" name="tx_indexedsearch[sword]" value="" placeholder="Start searching ..." class="search-bar animated fadeIn form-control tx-indexedsearch-searchbox-sword sword">
<span class="input-group-btn" style="display: none">
<input type="submit" name="tx_indexedsearch_pi2[search][submitButton]" value="Go" class="btn-u">
</span>
</div>
</form>
</li>
</ul>
</div>
</div>
CSS:
.tx-indexedsearch-rules,
.tx-indexedsearch-searchbox {
display: none;
}
.tx-indexedsearch-res {
table {
tbody {
tr:nth-child(3) {
display: none;
}
}
}
}
My search result page got id = 103. When i click to paging buttons, it goes to page 103 with blank content.
Upvotes: 0
Views: 1201
Reputation: 29
If anyone getting same issue in version 12. Then this will works for version 12.
I have an alternative solution for this issue.
I created userFunc using COA lib object. And attach f:cObject viewhelper where I need search form of index search in Fluid Template.
<f:cObject typoscriptObjectPath="lib.searchbox"/>
Here is code for userFunc in typoscript.
lib.searchbox = COA
lib.searchbox {
1000 = USER
1000 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = TYPO3\CMS
extensionName = IndexedSearch
pluginName = Pi2
controller = Search
action = search
}
}
By following configuration Pagination is working fine.
Upvotes: 0
Reputation: 31088
A blank page usually indicates a fatal error in PHP. Inspect your logs.
Upvotes: 0