developers.jseidl.at
WebsiteGitHubCodePen
  • developers.jseidl.at
  • CSS
    • Bootstrap NoGutter
    • Center image
    • Hamburger Menu (Mobile Menu)
    • Table-Cell
    • mMenu Hide
  • JavaScript
    • Scroll to Element
  • Typo3
    • Cookiebanner
    • DCE Backgroundimage (Section use)
    • DCE Background Image
    • Custom Form for Indexed Search
    • Frontendlayouts for Bodyclasses
    • Frontendlayouts
  • Utils
    • Force SSL
Powered by GitBook

Copyright 2024 - jseidl.at Julian Seidl

On this page

Was this helpful?

  1. Typo3

Custom Form for Indexed Search

You can add a custom indexed search form for your TYPO3 indexed search extension.

<f:form class="main-search" pageUid="14" method="post" id="tx_indexedsearch" noCacheHash="true" absolute="0" action="search" extensionName="IndexedSearch" pluginName="pi2" controller="Search">
    <div class="hidden tx-indexedsearch-hidden-fields">
        <input name="tx_indexedsearch_pi2[search][_sections]" value="0" type="hidden">
        <input id="tx_indexedsearch_freeIndexUid" name="tx_indexedsearch_pi2[search][_freeIndexUid]" value="_" type="hidden">
        <input id="tx_indexedsearch_pointer" name="tx_indexedsearch_pi2[search][pointer]" value="0" type="hidden">
        <input name="tx_indexedsearch_pi2[search][ext]" value="" type="hidden">
        <input name="tx_indexedsearch_pi2[search][searchType]" value="1" type="hidden">
        <input name="tx_indexedsearch_pi2[search][defaultOperand]" value="0" type="hidden">
        <input name="tx_indexedsearch_pi2[search][mediaType]" value="-1" type="hidden">
        <input name="tx_indexedsearch_pi2[search][sortOrder]" value="rank_flag" type="hidden">
        <input name="tx_indexedsearch_pi2[search][group]" value="" type="hidden">
        <input name="tx_indexedsearch_pi2[search][languageUid]" value="-1" type="hidden">
        <input name="tx_indexedsearch_pi2[search][desc]" value="" type="hidden">
        <input name="tx_indexedsearch_pi2[search][numberOfResults]" value="10" type="hidden">
        <input name="tx_indexedsearch_pi2[search][extendedSearch]" value="" type="hidden">
    </div>
    <div class="input-row">
        <div class="form-group tx-indexedsearch-form">
            <f:form.textfield name="search[sword]" value="" id="tx-indexedsearch-searchbox-sword" class="form-control tx-indexedsearch-searchbox-sword" placeholder="Webseite durchsuchen..." />
        </div><!-- /.form-group -->
        <div class="form-group tx-indexedsearch-search-submit">
            <f:form.button type="submit" class="btn btn-default tx-indexedsearch-searchbox-button" name="search[submitButton]" value="" id="tx-indexedsearch-searchbox-button-submit">
                <i class="fa fa-search"></i>
            </f:form.button>
        </div>
    </div>
</f:form>

Last updated 1 year ago

Was this helpful?