Uploaded image for project: 'Skin Intranet'
  1. Skin Intranet
  2. SKININTRA-305

Search service with media rendering, the button "See all" is missing on responsive device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.19.0
    • 1.7.0
    • None
    • None

      How to reproduce it :

      • insert search service on home page with following params :
        • Général : search contents type : PDF document, audio document, video document
        • Rendering :
          • contents view : media,
          • service rendering : media
          • Launch search on the first display
          • link : select a page and add a title

      On desktop, the link is displayed on the right and top corner.

      On responsive, it should be displayed after the results.

      I propose this correction : 

      <xsl:template name="hits">
         <div data-ametys-search-role="hits" class="medias-container">
            <xsl:for-each select="/search/hits/hit">
               <xsl:call-template name="hit"/>
            </xsl:for-each>
         </div>
         <xsl:call-template name="link-mobile"/>
      </xsl:template>
       
      <xsl:template name="link-mobile">
         <xsl:if test="/search/link/page">
            <xsl:call-template name="link-tag-mobile"/>
         </xsl:if>
      </xsl:template>
       
      <xsl:template name="link-tag-mobile">
         <xsl:if test="/search/link/page">
            <a class="btn mobile">
               <xsl:attribute name="href">
                  <xsl:call-template name="link-href"/>
               </xsl:attribute>
               <span class="plus">+</span>
                  <xsl:call-template name="link-attribute"/>
               <span><xsl:call-template name="link-title"/></span>
            </a>
         </xsl:if>
      </xsl:template>

       

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

              Created:
              Updated: