[FEATURE] Make indexed search extbase plugin form target Pid configurable 16/44716/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 14 Nov 2015 11:47:54 +0000 (12:47 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 15 Jan 2016 09:39:40 +0000 (10:39 +0100)
Allows to change extbase plugin search form target page configurable
from TypoScript.
The new TS option is introduced
plugin.tx_indexedsearch.settings.targetPid

when it is not set, the current pid will be used.

Resolves: #71331
Releases: master

Change-Id: I3e529d8e2a9f2008f04552e7da0a1f41b3a295e0
Reviewed-on: https://review.typo3.org/44716
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Documentation/Changelog/master/Feature-71331-MakeIndexedSearchExtbasePluginFormTargetPidConfigurable.rst [new file with mode: 0644]
typo3/sysext/indexed_search/Configuration/TypoScript/setup.txt
typo3/sysext/indexed_search/Resources/Private/Partials/Form.html

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-71331-MakeIndexedSearchExtbasePluginFormTargetPidConfigurable.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-71331-MakeIndexedSearchExtbasePluginFormTargetPidConfigurable.rst
new file mode 100644 (file)
index 0000000..0e0a0d8
--- /dev/null
@@ -0,0 +1,10 @@
+=================================================================================
+Feature: #71331 - Make indexed search extbase plugin form target Pid configurable
+=================================================================================
+
+Description
+===========
+
+The search form target page of the extbase variant of indexed:search can now be configured by using the TypoScript option ``plugin.tx_indexedsearch.settings.targetPid = 123``.
+
+If it is empty, the current page will be used.
\ No newline at end of file
index 30270be..3d97683 100644 (file)
@@ -6,7 +6,7 @@ config.index_metatags = 1
 plugin.tx_indexedsearch {
 
        settings {
-
+               targetPid =
                # show the rules
                displayRules = 1
 
index 0ff90c8..288d806 100644 (file)
@@ -1,5 +1,5 @@
 <div class="tx-indexedsearch-searchbox">
-<f:form action="search" method="post" id="tx_indexedsearch" noCacheHash="true">
+<f:form action="search" method="post" id="tx_indexedsearch" noCacheHash="true" pageUid="{settings.targetPid}">
        <div class="tx-indexedsearch-hidden-fields">
                <f:form.hidden name="search[_sections]" value="0" />
                <f:form.hidden name="search[_freeIndexUid]" id="tx_indexedsearch_freeIndexUid" value="_" />