Copied to clipboard

Flag this post as spam?

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


  • MOthman 27 posts 89 karma points
    Apr 24, 2012 @ 15:45
    MOthman
    0

    I can't use Macro Container - XSLT parameter is always empty <xsl:param name=mediaFolderId select=/macro/mediaFolderId />

    I created an xslt called GraphicsRowSlider with the following parameters

    <xsl:param name="mediaFolderId" select="/macro/mediaFolderId" />
    <xsl:param name="title" select="/macro/title" />

    And added the parameters title and mediaFolderId to the related macro.

    I then created new Macro Container data type and selected the macro GraphicsRowSlider as allowed macro. I then added a new field of the new data type into a document type and then imported that field into a template.

    Finally, from the content, I inserted the macro and added a title and selected media folder... However, I could see that the macro calls the correct xslt with the correct title and mediaFolderId but the parameters are always empty!

    Any thought?! Note, I always get this

    <?UMBRACO_MACRO macroalias="GraphicsRowSlider" title="Add Title here" mediaFolderId="1159" />

Please Sign in or register to post replies

Write your reply to:

Draft