Copied to clipboard

Flag this post as spam?

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


  • Thomas 66 posts 88 karma points
    Jun 28, 2012 @ 12:07
    Thomas
    0

    great package - what syntax is used for numeric and boolean parameters?

    This is really usefull for reusing macros and scripts without special code for RenderPage

    I keep getting this error, when using parameters:

    Input string was not in a correct format.    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

    example:

    @Library.RenderMacro("FooterContent"new currentColoumn="1"})

    Cheers

    Thomas

  • Scott Williams 14 posts 71 karma points
    Jun 28, 2012 @ 13:36
    Scott Williams
    0

    You are going to have update to version 1.1.0 (i've just uploaded it) there was a bug preventing properties from passing properly.

    you should be able to just use

    @Library.RenderMacro("FooterContent", new { currentColoumn = 1 })

    without the quotes.

    macros always convert all properties passed though to strings anyway (this is somthing that happens in the core somewhere) so both ways should work.

  • Thomas 66 posts 88 karma points
    Jun 28, 2012 @ 13:53
    Thomas
    0

    And now it works! - Thanks a lot H5YR

  • Scott Williams 14 posts 71 karma points
    Jun 28, 2012 @ 13:54
    Scott Williams
    0

    glad to be of service :)

Please Sign in or register to post replies

Write your reply to:

Draft