Any reason why you don't just make one Razr macro to fetch your data? The mix of Razor and XSLT just feels wrong to me.
But what version of Umbraco are you using and are you using MVC or webforms? If your templates are based on masterpages then you're using webforms. If they're based on views then you're using MVC. You can also check the
Anyway the reason I'm asking is because things work differently wether you use one or another and also the Umbraco version matters.
How To Use A XSLT Macro inside a cshtml macro
i want to insert the macro which is marked it red . but it shows an error because i use it inside a macro
this is the error below
please give me a solution
thanks in adavace
Hi Hudaifa,
Hi Hudhaifa,
I never tried this before but it looks like you can use the library method called umbraco.library.RenderMacroContent
http://our.umbraco.org/forum/templating/templates-and-document-types/33095-RenderMacroContent?p=0#comment121627
Hope this helps,
/Dennis
then an error pops
Error loading MacroEngine script (file: )
Hi Hudaifa
Any reason why you don't just make one Razr macro to fetch your data? The mix of Razor and XSLT just feels wrong to me.
But what version of Umbraco are you using and are you using MVC or webforms? If your templates are based on masterpages then you're using webforms. If they're based on views then you're using MVC. You can also check the
Anyway the reason I'm asking is because things work differently wether you use one or another and also the Umbraco version matters.
/Jan
i am using webforms.. and am using umbraco 6 version
how can i use include my xslt codes to cshtml macro.. should i inclde it as inline for razor
yeah i used a seperate razor thnx man it worked
is working on a reply...