Copied to clipboard

Flag this post as spam?

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


  • Joshua Brown 13 posts 93 karma points
    Sep 03, 2015 @ 17:58
    Joshua Brown
    0

    Looking for a link picker for a macro

    I am building a macro that will create a fairly complex HTML layout. One thing I need to include are links, which could be to outside pages or to pages within the current site tree. I need a link picker that I can add to this macro.

    I've tried using RJP's Multi Url Picker, but I can't figure out how to get the URL from the macro parameter once the link has been selected.

    1. I installed the package
    2. I made a data type for the Multi Url Picker
    3. I made a new macro parameter called "link1" in my macro using the new data type
    4. I put this line in my partial macro view: var a1 = Model.MacroParameters["link1"]
    5. I put @a1.Url in my HTML in the partial view. It throws a compilation error.

    I've looked at the scant documentation there is for the Multi Url Picker. I can't figure out what I'm doing wrong. Is there an easier picker I can use? Or can you tell me how to fix what I'm doing wrong with the RJP one?

Please Sign in or register to post replies

Write your reply to:

Draft