Dans toutes vos surcharges du rendu du service "Annuaire de liens" (fichiers skins/[SKIN]/services/link-directory/pages/services/directory/**.xsl)
Recherchez l'appel au template XSL "links-thumbnails", et rajouter le paramètre <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>
<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>
<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>
<!-- 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>
<!-- 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>
Et il faut ajouter