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.
I installed the package
I made a data type for the Multi Url Picker
I made a new macro parameter called "link1" in my macro using the new data type
I put this line in my partial macro view: var a1 = Model.MacroParameters["link1"]
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?
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.
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?
is working on a reply...