5

In the advanced tab of the publish dialog window there is an option to 'Abort Publishing/Unpublishing on All Servers in Case of Error'. By default this option is turned off.

Is there a way to turn this option by default on?

5

I'm thinking of two possible scenarios:

  • Event System - intercept the publish event PublishEventArgs on the item you are publishing and set the Publish Instruction property RollbackOnFailure to true. In this scenario, the user won't have control over this feature. Rather, it is controlled by the code via Tridion API;

  • GUI extension - extend the Publish Options view and set the checkbox using JavaScript. This scenario will show the checkbox selected by default and the user has control over enabling/disabling this option;

There might be a third option of modifying the actual HTML of the view (the hacky way), but I recommend against it, because it's not a supported path.

2

There is no back end switch you can flip to do this. You either need to extend the GUI via the Anguilla framework or hack the Tridion HTML source to set the checkbox on in the semantic markup. In Tridion 2009 hacking the markup was a sure and easy way to do this (though unsupported since a new release could rewrite that source).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.