Only the top part of the following Macro works when used in the RTE field:
@inherits umbraco.MacroEngines.DynamicNodeContext
@* This give me nice media ID list like 1115,1114,1116 in the rte doc type *@
@if(Html.Raw(Parameter.ListeAlias) != null)
{
<p>1 Test to see if Alias data can be found</p>
@(Html.Raw(Parameter.ListeAlias))
}
@if (Model.Content.HasValue("ListeAlias"))
{
foreach (var item in Model.GetProperty("ListeAlias").Value.Split(','))
{
<p>2 Test to see if Alias data can be found</p>
@Model.MediaById(@item).umbracoFile
}
}
I have tried with:
Model.Content.HasValue("ListeAlias")
and
Model.HasValue("ListeAlias")
I some how need to reference the Alias data from the macro being used in the richtexteditor field.
RTE Macros in 7.1.1
The following macro works perfectly when used in a template:
Only the top part of the following Macro works when used in the RTE field:
I have tried with:
and
I some how need to reference the Alias data from the macro being used in the richtexteditor field.
Thanks
is working on a reply...