Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a macro that has a contentpicker on, i would like to get the url from the parameter in the razor script, can this be done?
Can you try doing the following
@{
var param = @Parameter.source; var content = Model.NodeById(@param); foreach(var node in content.Children) {@node.Url}
}
Error loading Razor Script PersonVCard.cshtmlCannot instantiate a DynamicNode without an id
Under the Parameter tab for PersonVCard Macro did you add the Alias : source Name: Content ?
//fuji
Holy Crap I just realise i completely replied to your threat with a wrong solution.
With Content Picker try this instead
@{ var content = @Model.NodeById(Model.conntePicker); @content.Url }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Content picker
I have a macro that has a contentpicker on, i would like to get the url from the parameter in the razor script, can this be done?
Can you try doing the following
Error loading Razor Script PersonVCard.cshtml
Cannot instantiate a DynamicNode without an id
Under the Parameter tab for PersonVCard Macro did you add the Alias : source Name: Content ?
//fuji
Holy Crap I just realise i completely replied to your threat with a wrong solution.
With Content Picker try this instead
is working on a reply...