Display dynamic information on links


Display dynamic information on links

In all your link directory rendering overloads (fichiers skins/[SKIN]/services/link-directory/pages/services/directory/**.xsl)

Look for the call to template XSL "links-thumbnailsand add the parameter <xsl:with-param name="themes" select="ametys:serviceParameter('themes')"/>

<xsl:call-template name="links-thumbnails"> 
    <xsl:with-param name="links" select="/links/link"/> 
    <xsl:with-param name="cssClass" select="'links small'"/> 
    <xsl:with-param name="moreThreshold" select="8"/> 
    <xsl:with-param name="height" select="50"/> 
    <xsl:with-param name="width" select="50"/> 
    <xsl:with-param name="themes" select="ametys:serviceParameter('themes')"/> 
    <xsl:with-param name="showThemes" select="ametys:serviceParameter('showThemes')"/> 
    <xsl:with-param name="showUrl" select="ametys:serviceParameter('showUrl')"/> 
</xsl:call-template> 
       

 

Si le template a été surchargé, il faut ajouter <xsl:param name="themes"/> et ajouter l'appel au template link-dynamic-info-js , exemple : 

<!-- The links in thumbnails mode --> 
<xsl:template name="links-thumbnails"> 
  <xsl:param name="links"/> 
  <xsl:param name="cssClass">links</xsl:param> 
  <xsl:param name="moreThreshold"/> 
  <xsl:param name="height" select="35"/> 
  <xsl:param name="width" select="35"/> 
  <xsl:param name="themes"/> 
  <xsl:param name="showThemes"/> 
  <xsl:param name="showUrl"/> 
... 
  <xsl:call-template name="link-dynamic-info-js"> 
         <xsl:with-param name="themes" select="$themes"/> 
  </xsl:call-template> 
</xsl:template> 
       

And we must add

Back to top