Copied to clipboard

Flag this post as spam?

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


  • Peter Duncanson 430 posts 1358 karma points c-trib
    Feb 27, 2010 @ 18:15
    Peter Duncanson
    0

    Which event does saving a XSL file fire?

    I want to run some code when XSL files are saved but I can't seem to find a "XSLDoc" class in the code anywhere. Where should I be looking?

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Feb 27, 2010 @ 18:40
    Lee Kelleher
    0

    Hi Peter,

    Not sure if you've had a read of my reply on another topic about hooking into the SaveXslt?

    When saving an XSLT in the Umbraco back-office, the following method is called (via ajax):

    umbraco.presentation.webservices.codeEditorSave.SaveXslt()

    I've looked over the code and there's nothing "hook-able" in there, (to my knowledge).  Which is unfortunate, might raise a ticket on CodePlex later (if I have time) - unless someone else gets there first? ;-)

    Cheers, Lee.

  • Peter Duncanson 430 posts 1358 karma points c-trib
    Feb 27, 2010 @ 19:16
    Peter Duncanson
    0

    Hi Lee,

    Thanks for the pointer. Would be a shame if I can't hook into it. I'm wanting to run some code that checks for included XSL files (see http://our.umbraco.org/forum/templating/templates-and-document-types/5599-Including-XSL-file-changes-not-picked-up,-needs-parent-file-tickled-to-update) when a XSL file is saved. If I can't hook in then I can manage it.

    Cheers

    Pete

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies