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 14, 2012 @ 01:34
    MOthman
    0

    XSLT is not reading Macro Container parameters added to a content

    I created an xslt called GraphicsRow 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 GraphicsRow 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 foler... 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" />

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Apr 14, 2012 @ 12:29
    Chriztian Steinmeier
    0

    Hi MOthman,

    The UMBRACO_MACRO code is calling a macro called "GraphicsRowSlider" with the parameters you created for the "GraphicsRow" macro - is that because the alias is different from the name (which should totally work with no problems), or did you maybe try this earlier with another macro?

    /Chriztian

  • MOthman 27 posts 89 karma points
    Apr 14, 2012 @ 12:45
    MOthman
    0

    Thanks Chriztian, I missed type the macro alias, it is actually GraphicRowSlider, so, it is just the same name as coming from the content but still doesnt work :(

Please Sign in or register to post replies

Write your reply to:

Draft