All Macro parameters you set, you need to extract the value by using the Model.MacroParameters[alias] for this the Multi Node Picker, the data is stored a string Array of node ids. Therefor we need to split it, to an list Ids we can each over and one by one convert it from Id to content.
Looping MultiNodeTreePicker content from macro parameters
Hi everyone.
I'm having issues trying to loop out content from a macro, inside a richtext editor.
I have done the following
Now to my issue
Inside my macro partial view DownloadFiler.cshtml i want to loop out the nodes i have picked.
In the Umbraco Docs i found Multinode Treepicker but that won't work since im using a macro with parameters.
How do i modify the following to work with macro parameters?
Hello Thomas,
It will look something like this:
All Macro parameters you set, you need to extract the value by using the
Model.MacroParameters[alias]
for this the Multi Node Picker, the data is stored a string Array of node ids. Therefor we need to split it, to an list Ids we can each over and one by one convert it from Id to content.Hello Lucas! Thanks alot, it works perfectly!
is working on a reply...