I have a macro that extract images stored on subpages to a given node (mediapicker). The macro is called from a "list- page " . I would like to repeat the task for the images in this list. Is it possible to call a macro from an link ( click on a image)..
Execute macro fro m a link..?
I have a macro that extract images stored on subpages to a given node (mediapicker). The macro is called from a "list- page " . I would like to repeat the task for the images in this list. Is it possible to call a macro from an link ( click on a image)..
/ Poul
My macro :
<xsl:for-each select="$currentPage/*[@isDoc][not(umbracoNaviHide = 1)]">
<xsl:if test="normalize-space(art_img)">
<a href = "??????????>
<xsl:variable name="mediaNode" select="umbraco.library:GetMedia(art_img, 0)" />
<xsl:if test="$mediaNode/umbracoFile">
<img src="/imageGen.ashx?image={$mediaNode/umbracoFile}&dth={$thumbWidth}&dth={$thumbWidth}&bordercolor=red&border=0&text={@bodytext}&fontsize=30&fontcolor=red&align=center&valign=top&height={$thumbHeight}" width="{$thumbWidth}" height="{$thumbHeight}" alt="{@nodeName}" title="{@nodeName}" class="thumbnail" />
</xsl:if> </a>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
is working on a reply...