Copied to clipboard

Flag this post as spam?

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


  • Jason Prothero 422 posts 1243 karma points c-trib
    Apr 18, 2013 @ 19:11
    Jason Prothero
    0

    Question about macro creation

    When I create a new XSLT or Razor macro the uSync macro .config file isn't created until I go to the Macro under the "Macros" folder and press save.  Is this expected?  Or could it be because I'm testing on a 4.11.3.1 site?

     

    Thanks,
    Jason

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Apr 18, 2013 @ 20:04
    Kevin Jump
    0

    I have to say it's something i've noticed with doctypes creating templates ( the template doesn't get saved until you go to it and save). i suspect the OnSave event isn't being fired when it's created from the relevant other type.

    i think this is still the case in 4.11.6 - i will check, it's probibly something that needs submitting to issues.umbraco.org

  • Jason Prothero 422 posts 1243 karma points c-trib
    Apr 18, 2013 @ 20:07
    Jason Prothero
    0

    Ah, OK so it *should* work but perhaps my version doesn't support it.

    I'll be trying it on v6 for real so I'll watch how it works on that version.

     

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Apr 18, 2013 @ 20:12
    Kevin Jump
    0

    i've just tested it in  6.0.4 nightly and it doesn't fire :( I will probibly log it as an issue in umbraco, but i doubt it will be high priority 

  • Rich Green 2246 posts 4008 karma points
    Apr 18, 2013 @ 20:24
    Rich Green
    0

    Hey Jason,

    Out of interest why do you still need your macros? You can use XSLT / Razor without creating macros using uComponents. Saves the hassle when deploying.

    Rich

  • Rich Green 2246 posts 4008 karma points
    Apr 18, 2013 @ 20:25
    Rich Green
    0

    Unless they are for the Rich Text Editor of course.

    Rich

  • Jason Prothero 422 posts 1243 karma points c-trib
    Apr 18, 2013 @ 22:43
    Jason Prothero
    0

    Does it do output caching as well?

    I haven't used that piece of uComponents yet.  Do you have a link I can check out?

     

    Thanks,
    Jason 

  • Rich Green 2246 posts 4008 karma points
    Apr 19, 2013 @ 00:00
    Rich Green
    0

    Hey Jason,

    Think it came in at uComponents v4.1.0, not sure as we're always using Lee's latest version.

    The syntax is the same as for razor, off top of my head:

    Language="xslt" FileLocation="xslt/widgets.xslt" Cache="300"/>

    I can't test it as away from dev machine, pretty sure that's it, doesn't seem to be documented.

    Rich


Please Sign in or register to post replies

Write your reply to:

Draft