Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10370

On search service, when I call the search-js-next-page template, with an argument, this one is not transmited

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.14, 4.3.1, 4.4.0
    • 4.3.0
    • None
    • None
    • 4.4 M1

      How to reproduce it :

      <xsl:if test="/search/pagination/@total > 1">
        <xsl:if test="/search/pagination/@total > 1">
          <div class="more-result more-result-link" data-ametys-search-role="show-more">             <div>
               <a>
                 <xsl:attribute name="onclick"> 
                   <xsl:call-template name="search-js-next-page">  
                     <xsl:with-param name="callback-function">function() {  
                          $j('.hitspage:last()').slideDown() }
      
                     </xsl:with-param>
                   </xsl:call-template>   
                 </xsl:attribute> 
                 <i18n:text i18n:key="SKIN_SERVICE_SEARCH_VIEW_MORE_RESULTS" i18n:catalogue="skin.{$skin}"/>
             </a>
           </div>
           <span class="icon-chevron"></span>
         </div>
      </xsl:if> 

       

      To correct it : add line 427 of plugins/web/resources/js/search/SearchService.js

       callback: config.callback

       

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: