[BUGFIX] Jump Links in indexed_search Template 34/53634/2
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 20:06:39 +0000 (22:06 +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/53634
Tested-by: TYPO3com <no-reply@typo3.com>
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>