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

The filtered contents with carousel display should use the pagination parameter of the service

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 3.8
    • Démo
    • None
    • 2 - Long term
    • 2 - Normal

      In the services/web/pages/services/filtered-contents/list-carousel_3.3.xsl of the demo skin, add this lines :

      <xsl:template name="contents-css">
      ...
      <style type="text/css">
      	        	#carousel-<xsl:value-of select="$uniqueId"/>.js .carousel-wrap > ul {
      	        		width: <xsl:value-of select="$nbr-items" />00% !important;
      	        	}
      	        	#carousel-<xsl:value-of select="$uniqueId"/>.js .carousel-wrap > ul > li {
      	        		width: <xsl:choose><xsl:when test="$pagination = '' or $pagination = 0">100</xsl:when><xsl:otherwise><xsl:value-of select="100 div $nbr-items div $pagination" /></xsl:otherwise></xsl:choose>% !important;
      	        	}
      	        </style>
      </template>
      <xsl:template name="contents-js">
      ...
      <script type="text/javascript">            
                  $j(document).ready( function() {
                      $j('#carousel-<xsl:value-of select="$uniqueId"/>').carousel( {
      ...
      dispItems: <xsl:choose><xsl:when test="$pagination = '' or $pagination = 0">1</xsl:when><xsl:otherwise><xsl:value-of select="$pagination" /></xsl:otherwise></xsl:choose>,
      ...
      });
                  });             
              </script>
      </template>

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

              Created:
              Updated: