I want to add a custom condition for Publishing an item in Experience Editor Mode. By default it uses the Publish.js and in that JS, there is function as below:

showPublishDialog: function(context) {
      ExperienceEditor.modifiedHandling(true, function (isOk) {
        ExperienceEditor.PipelinesUtil.initAndExecutePipeline(context.app.PublishPipeline, context);

What is this context.app.PublishPipeline, how can I abort publish pipeline based on condition?

  • Which version of Sitecore are you on? Jul 21 '20 at 7:37
  • using sitecore9
    – Debaparna
    Jul 28 '20 at 8:55

Your Answer

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

Browse other questions tagged or ask your own question.