[BUGFIX] Jump Links in indexed_search Template 96/53496/6
authorAchim Fritz <af@achimfritz.de>
Fri, 14 Jul 2017 20:42:26 +0000 (22:42 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 31 Jul 2017 18:52:19 +0000 (20:52 +0200)
Use Page.Link ViewHelper in indexed_search Search Template for jump links

Resolves: #79982
Releases: master, 8.7
Change-Id: I85a32714c4d098a1afc5b35ab90189e61ba16ea9
Reviewed-on: https://review.typo3.org/53496
Reviewed-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Ralf Merz <ralf@ralf-merz.de>
Tested-by: Ralf Merz <ralf@ralf-merz.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/indexed_search/Resources/Private/Templates/Search/Search.html

index 1d413b2..198d09b 100644 (file)
                                                        <f:for each="{result.affectedSections}" as="sectionData" key="sectionId">
                                                                <tr>
                                                                        <td width="100%">--&gt;&nbsp;
-                                                                               <a href="#anchor_{sectionId}">
+                                                                               <f:link.page section="anchor_{sectionId}" addQueryString="1" noCacheHash="1"
+                                                                                                                                argumentsToBeExcludedFromQueryString="{0: 'id'}">
                                                                                        <f:if condition="{sectionData.0}">
                                                                                                <f:then>{sectionData.0}</f:then>
                                                                                                <f:else><f:translate key="unnamedSection" /></f:else>
                                                                                        </f:if>
                                                                                        &nbsp;({sectionData.1}&nbsp;<f:translate key="{f:if(condition: '{sectionData.1} > 1', then: 'result.pages', else: 'result.page')}" />)
-                                                                               </a>
+                                                                               </f:link.page>
                                                                        </td>
                                                                </tr>
                                                        </f:for>