Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hudhaifa Yoosuf 28 posts 97 karma points
    Mar 25, 2014 @ 09:24
    Hudhaifa Yoosuf
    0

    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

  • sami 22 posts 104 karma points
    Mar 25, 2014 @ 09:29
    sami
    1

    Hi Hudaifa,

     @Umbraco.RenderMacro("UmbracoProductsListItems")
    
  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2014 @ 09:35
    Dennis Aaen
    0

    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

  • Hudhaifa Yoosuf 28 posts 97 karma points
    Mar 25, 2014 @ 09:37
    Hudhaifa Yoosuf
    0

    then an error pops

     Error loading MacroEngine script (file: )

     

    Error loading MacroEngine script (file: )

     

    Error loading MacroEngine script (file: )
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 25, 2014 @ 09:47
    Jan Skovgaard
    100

    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

  • Hudhaifa Yoosuf 28 posts 97 karma points
    Mar 25, 2014 @ 09:58
    Hudhaifa Yoosuf
    0

    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



  • Hudhaifa Yoosuf 28 posts 97 karma points
    Apr 17, 2014 @ 13:44
    Hudhaifa Yoosuf
    0

    yeah i used a seperate razor thnx man it worked

     

Please Sign in or register to post replies

Write your reply to:

Draft