I've got a macro with a .net usercontrol that renders child nodes and a rich-text-editor property from each of them. Inside these rich-text-editor properties there might be a macro. Anyway to render that inner macro? Now the output of the inner macro is just blank...
I think to process the macros embedded within a rich-text-editor, you'll have to search for the Macro delimiter <?UMBRACO_MACRO macroAlias="..." /> within the rich-text-editor property and then dynamically add it.
I also have to search for each and one of the macro parameters I suppose. They aren't stored in the database somehow? To bad my regex skills sucks.... :p
Render macro inside another macro. Possible?
I've got a macro with a .net usercontrol that renders child nodes and a rich-text-editor property from each of them. Inside these rich-text-editor properties there might be a macro. Anyway to render that inner macro? Now the output of the inner macro is just blank...
Stig
stig,
It is possible to call xslt macro from xslt macro using RenderMacro xslt extension method but i am fairly certain you cannot do it from .net macro
Regards
Ismail
Hi Stig
You can call a .Net macro and an XSLT macro from a .Net macro (see Tim's blog post on Adding an Umbraco macro dynamically to a user control), but can only call XSLT macros from other XSLT macros (see the RenderMacroContent wiki page)
I think to process the macros embedded within a rich-text-editor, you'll have to search for the Macro delimiter <?UMBRACO_MACRO macroAlias="..." /> within the rich-text-editor property and then dynamically add it.
HTH,
Hendy
Great! Thanks alot!
I also have to search for each and one of the macro parameters I suppose. They aren't stored in the database somehow?
To bad my regex skills sucks.... :p
is working on a reply...