Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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.
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
is working on a reply...
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.
Continue discussion
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?
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):
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.
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
is working on a reply...
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.