[TYPO3-german] Indexed Search Mini-Formular im Template

Christian Hackl hackl.chris at googlemail.com
Mon May 8 18:29:32 CEST 2017


Also weiß nicht ob das in Typo3 8 nicht mehr funktioniert, aber ich denke du kannst z. B. das 'form.html' aus der sysext kopieren.
Zu deinen Templates legen - und anpassen - zum Beispiel:


<div id="searchbox">
	<f:form id="tx_indexedsearch" class="main-search" pageUid="{searchID}" method="post" 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="tx-indexedsearch-searchbox-button" name="search[submitButton]" value="" id="tx-indexedsearch-searchbox-button-submit">
					<?xml version="1.0" encoding="utf-8"?>
					<svg version="1.1" id="searchIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
						viewBox="0 0 16.5 17.5" style="enable-background:new 0 0 16.5 17.5;" xml:space="preserve">
						<style type="text/css">
							.st0{fill:#FFFFFF;}
						</style>
						<g>
							<path id="Lupe" class="st0" d="M15.7,13.9l-4.4-4.6c0.6-1,0.9-2.1,0.9-3.2C12.2,2.7,9.4,0,6.1,0S0,2.7,0,6.1s2.7,6.1,6.1,6.1
								c1,0,2.1-0.3,3-0.8l4.4,4.6L15.7,13.9z M3,6.1C3,4.4,4.4,3,6.1,3s3.1,1.4,3.1,3.1c0,0.9-0.4,1.8-1.1,2.4c-0.6,0.5-1.2,0.7-2,0.7
								C4.4,9.2,3,7.8,3,6.1z"/>
						</g>
					</svg>
				</f:form.button>
			</div>
		</div>
	</f:form>
</div>



More information about the TYPO3-german mailing list