[BUGFIX] Adds typoscripts constants targetPid and rootPidList 54/49754/7
authorTomita Militaru <militarutomita@gmail.com>
Fri, 2 Sep 2016 12:32:39 +0000 (14:32 +0200)
committerFrans Saris <franssaris@gmail.com>
Sat, 3 Sep 2016 10:33:04 +0000 (12:33 +0200)
Adds typoscripts constants targetPid and rootPidList
for indexed_search.

Resolves: #77768
Releases: master
Change-Id: I673d4b45fccd2a723d3b41fd04dd7831f738f0ad
Reviewed-on: https://review.typo3.org/49754
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/indexed_search/Configuration/TypoScript/constants.txt
typo3/sysext/indexed_search/Configuration/TypoScript/setup.txt

index 38a3e28..97b4b4f 100644 (file)
@@ -7,4 +7,10 @@ plugin.tx_indexedsearch {
                 # cat=plugin.tx_indexedsearch/file; type=string; label=Path to template layouts (FE)
                layoutRootPath =
        }
+       settings {
+               # cat=plugin.tx_indexedsearch/settings; type=integer; label=Set the target page where search results are shown
+               targetPid =
+               # cat=plugin.tx_indexedsearch/settings; type=string; label=A list of integer which should be root-pages to search from
+               rootPidList =
+       }
 }
index 5b9cc65..4a95671 100644 (file)
@@ -6,7 +6,7 @@ config.index_metatags = 1
 plugin.tx_indexedsearch {
 
        settings {
-               targetPid =
+               targetPid = {$plugin.tx_indexedsearch.settings.targetPid}
                # show the rules
                displayRules = 1
 
@@ -29,8 +29,7 @@ plugin.tx_indexedsearch {
                alwaysShowPageLinks = 1
                mediaList =
 
-               #search.rootPidList
-               rootPidList =
+               rootPidList = {$plugin.tx_indexedsearch.settings.rootPidList}
                page_links = 10
                detectDomainRcords = 0
                defaultFreeIndexUidList =
@@ -124,5 +123,4 @@ plugin.tx_indexedsearch {
                        10 = {$plugin.tx_indexedsearch.view.layoutRootPath}
                }
        }
-
 }