Is it possible to create a macro using a class? So say I have my class library with a set of classes in, in the Macro it should use the class which can be added in my page templates etc
Is it an asp.net control class or you just want to call this class from your macro?
In first case you can create a macro based on the custom control (Developer -> Macros -> Create -> Macro Properties -> ".NET Custom Control / Assembly / Type").
In the latter you can either call your class from a razor macro or turn it to an XSLT extension to use it from an XSLT macro. You can also extend your XSLT with inline code and call your class from it.
Create a Macro using a class
Hi all,
Is it possible to create a macro using a class? So say I have my class library with a set of classes in, in the Macro it should use the class which can be added in my page templates etc
Thanks!
Is it an asp.net control class or you just want to call this class from your macro?
In first case you can create a macro based on the custom control (Developer -> Macros -> Create -> Macro Properties -> ".NET Custom Control / Assembly / Type").
In the latter you can either call your class from a razor macro or turn it to an XSLT extension to use it from an XSLT macro. You can also extend your XSLT with inline code and call your class from it.
is working on a reply...