Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pna 11 posts 31 karma points
    Nov 26, 2012 @ 14:09
    pna
    0

    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}&amp;dth={$thumbWidth}&amp;dth={$thumbWidth}&amp;bordercolor=red&amp;border=0&amp;text={@bodytext}&amp;fontsize=30&amp;fontcolor=red&amp;align=center&amp;valign=top&amp;height={$thumbHeight}" width="{$thumbWidth}" height="{$thumbHeight}" alt="{@nodeName}" title="{@nodeName}" class="thumbnail" />

    </xsl:if> </a>

      </xsl:if>

    </xsl:for-each>

    </xsl:template>

    </xsl:stylesheet>

Please Sign in or register to post replies

Write your reply to:

Draft