Hi
I found a skrift article by Dave W that has been really useful so far. I’ve been able to intercept the preview button in the back office but I’m now have a question which I hope someone can help with as my angular knowledge is rubbish.
Firstly the article is: Changing backoffice functionality without changing core code by Dave Woestenborghs | Issue 25 of Skrift Magazine
I need to only interept the preview button if I’m using a specific document type and if that matches,I want to make a get request to a controller that I have which creates a pdf on the fly.
Just now if I call the pdf via a URL, it works so all I need is for the preview button to also load that pdf.
Can anyone help?
Thanks
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/101950-custom-action-on-preview-button