Hi,if one clicks the 'generate' button in a dcr-edit-window it generates the outputfile (good) but as a bonus it shows the generated file in a popup preview-window (not good)Is it possible to stop this preview-popup and only perform the generate-action?
I don't think one can customise the buttons in the top of the dcr window.
true
false
taalgaard's solution will fail if you hit generate on a form that's not dirty (hasn't changed since the last save), because the onSave event won't (may not?) get triggered. Lucky for you, the 'onGenerate' form-level event exists in your TS version (p.67 in 7.1 guide)
Lets forget FormAPI altogether and instead add the following to your tpl file.[PHP]<script>window.open('', '_self');window.close();</script>[/PHP] You will get a quick window that pops up, but it will close automatically for the user.
Yeah, nice one. This will make my browser close once a visitor will visit my public website. That's is a nice way to scare them off, poor web-visitors. Who needs them anyway? :-)
What I will implement is slighty illegal...