Copied to clipboard

Flag this post as spam?

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


  • Marco 6 posts 26 karma points
    Nov 03, 2009 @ 09:31
    Marco
    0

    Templates, marco and parameters

    Hi, i'm developing a new web site and i really don't know how solve this problem In a template i have inserted a macro, i have to pass a parameter to this macro, but this parameter is the value of a field that i have in the page. Someone have some idea? Thanks to all for the help Marco

     

  • skiltz 501 posts 701 karma points
    Nov 03, 2009 @ 09:34
    skiltz
    0

    Here is an example - inserting 3 field values (width, height, youtubelink)

    <umbraco:Macro videoHeight="[#Width]" videoWidth="[#Height]" videoUrl="[#youTubeLink]" Alias="videoEmbed" runat="server"></umbraco:Macro>
  • Marco 6 posts 26 karma points
    Nov 03, 2009 @ 09:41
    Marco
    0

    Thanks for your reply skiltz, i will try this solution soon.

    The [#Width] is the name of the filed declared in the page?

  • skiltz 501 posts 701 karma points
    Nov 03, 2009 @ 09:46
    skiltz
    0

    Yes the Alias

  • Marco 6 posts 26 karma points
    Nov 04, 2009 @ 18:48
    Marco
    0

    Thanks Skiltz, worked great!!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies