[FEATURE] stdWrap for list of results 92/20192/5
authorRalf Hettinger <ng@ralfhettinger.de>
Fri, 26 Apr 2013 16:11:16 +0000 (18:11 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 14 Oct 2013 10:15:21 +0000 (12:15 +0200)
Adding the TS property
plugin.tx_indexedsearch.resultlist_stdWrap -> stdWrap
which allows passing the list of results through stdWrap

Resolves: #16386
Releases: 6.2
Change-Id: I9b17b0036d21e880747d7d03a58349969c87effb
Reviewed-on: https://review.typo3.org/20192
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php
typo3/sysext/indexed_search/Documentation/Configuration/Typoscript/Index.rst
typo3/sysext/indexed_search/ext_typoscript_setup.txt

index a38635a..323bf44 100644 (file)
@@ -767,21 +767,27 @@ class SearchFormController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
                                                // Add content header:
                                                $content .= $this->makeSectionHeader($id, $sectionTitleLinked, count($resultRows));
                                                // Render result rows:
+                                               $resultlist = '';
                                                foreach ($resultRows as $row) {
-                                                       $content .= $this->printResultRow($row);
+                                                       $resultlist .= $this->printResultRow($row);
                                                }
+                                               $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                                        }
                                        break;
                                default:
                                        // flat:
+                                       $resultlist = '';
                                        foreach ($resultRows as $row) {
-                                               $content .= $this->printResultRow($row);
+                                               $resultlist .= $this->printResultRow($row);
                                        }
+                                       $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                        }
                } else {
+                       $resultlist = '';
                        foreach ($resultRows as $row) {
-                               $content .= $this->printResultRow($row);
+                               $resultlist .= $this->printResultRow($row);
                        }
+                       $content .= $this->cObj->stdWrap($resultlist, $this->conf['resultlist_stdWrap.']);
                }
                return '<div' . $this->pi_classParam('res') . '>' . $content . '</div>';
        }
index 53e7a8d..f0fd8fb 100644 (file)
@@ -347,6 +347,22 @@ whatis\_stdWrap
    Description
          Parse input through the stdWrap function
 
+.. _resultlist-stdWrap:
+
+resultlist\_stdWrap
+"""""""""""""""""""
+
+.. container:: table-row
+
+   Property
+         resultlist\_stdWrap
+
+   Data type
+         :ref:`stdWrap <t3tsref:stdwrap>`
+
+   Description
+         Parse the result list through the stdWrap function
+
 
 [tsref:plugin.tx\_indexedsearch]
 
index ed15c24..8af4504 100755 (executable)
@@ -47,6 +47,8 @@ plugin.tx_indexedsearch {
        }
        path_stdWrap {
        }
+       resultlist_stdWrap {
+       }
        search {
                rootPidList =
                page_links = 10