Skip to main content
added 206 characters in body
Source Link
polonskyg
  • 801
  • 4
  • 12

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are:

  1. Use event system

    Use event system Probably something like:

    EventSystem.SubscribeAsync<Page, PublishEventArgs>(OnPagePublishPre, EventPhases.Initiated);
    
  2. Use Custom Resolver

    Use Custom Resolver

It's my understanding I can accomplish the stop with both approaches. My question is if there's one that's better over the other, taking into account performance and cases where many pages/components can be sent to be published.

I don't find the life cycle of this, which one would happen first?

Thanks in advance! Guillermo.

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are:

  1. Use event system
  2. Use Custom Resolver

It's my understanding I can accomplish the stop with both approaches. My question is if there's one that's better over the other, taking into account performance and cases where many pages/components can be sent to be published.

Thanks in advance! Guillermo.

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are:

  1. Use event system Probably something like:

    EventSystem.SubscribeAsync<Page, PublishEventArgs>(OnPagePublishPre, EventPhases.Initiated);
    
  2. Use Custom Resolver

It's my understanding I can accomplish the stop with both approaches. My question is if there's one that's better over the other, taking into account performance and cases where many pages/components can be sent to be published.

I don't find the life cycle of this, which one would happen first?

Thanks in advance! Guillermo.

Source Link
polonskyg
  • 801
  • 4
  • 12

From where is it better to stop publish in Web 8 or Web 8.5

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are:

  1. Use event system
  2. Use Custom Resolver

It's my understanding I can accomplish the stop with both approaches. My question is if there's one that's better over the other, taking into account performance and cases where many pages/components can be sent to be published.

Thanks in advance! Guillermo.