Hey everyone, I have a fairly complicated issue to explain, so I am trying to outline the requirements below.
Using a UltimatePicker from one piece of content to get content ID's of some widgets I want to load.
Via XSLT splitting the comma separated values
Some of these items contain raw HTML, and some contain Macros.
The items containing HTML work fine, and I can hard code a Marco as seen in the code, but if the widget contains a Macro via the RichTextArea I am not sure how to make these render.
Any pointers that you could provide would be awesome. Thanks everyone.
That's just really stubbed out code to show the example, obviously you should change it to match really what you want.
To get info about the current node (or any node) in .NET use the you can use the UmbracoContext object (if you're in Umbraco 4.5) or nodeFactory.Node (if you're in Umbraco 4.0)
Loading a Macro from a RichTextArea via XSLT
Hey everyone, I have a fairly complicated issue to explain, so I am trying to outline the requirements below.
Are you trying to load a .NET macro or an XSLT macro from the XSLT macro? IIRC you can't load .NET macros from XSLT.
Right, they would be .NET controls. So this is not doable. Any recommendations on how one might go about this in any other way?
Do it entirely in .NET. You can then even compress it into a single macro.
But if you really must have it has 2 macros you can have something like this:
That's just really stubbed out code to show the example, obviously you should change it to match really what you want.
To get info about the current node (or any node) in .NET use the you can use the UmbracoContext object (if you're in Umbraco 4.5) or nodeFactory.Node (if you're in Umbraco 4.0)
I have yet to do things like that in .net, are there any good examples or references you could point me to?
is working on a reply...