Skip to main content
deleted 4 characters in body
Source Link
Atila Sos
  • 6.3k
  • 2
  • 16
  • 26

Short answer,: it is the preferred way, yes.

Longer answer:

  • For unpublish you can only use the ITransportHandler.

  • For publish you can use both the RenderedItem.AddInstruction and ITransportHandler, but it's better to use the AddInstruction because it's an API call and not direct XML manipulation. Note that you can use the RenderedItem.AddInstruction from two places: Templating, or from a Custom Renderer. Again itIt depends on your needs.

PS. Some shameless self promoting, but feel free to see my talk atfrom this year's TDS. It's related to your question.

Short answer, it is the preferred way, yes.

Longer answer:

  • For unpublish you can only use the ITransportHandler.

  • For publish you can use both the RenderedItem.AddInstruction and ITransportHandler, but it's better to use the AddInstruction because it's an API call and not direct XML manipulation. Note that you can use the RenderedItem.AddInstruction from two places: Templating, or from a Custom Renderer. Again it depends on your needs.

PS. Some shameless self promoting, but feel free to see my talk at this year's TDS. It's related to your question.

Short answer: it is the preferred way, yes.

Longer answer:

  • For unpublish you can only use the ITransportHandler.

  • For publish you can use both the RenderedItem.AddInstruction and ITransportHandler, but it's better to use the AddInstruction because it's an API call and not direct XML manipulation. Note that you can use the RenderedItem.AddInstruction from two places: Templating, or from a Custom Renderer. It depends on your needs.

PS. Some shameless self promoting, but feel free to see my talk from this year's TDS. It's related to your question.

added 269 characters in body
Source Link
Atila Sos
  • 6.3k
  • 2
  • 16
  • 26

ItShort answer, it is the preferred way, yes.

Note that, you can use the RenderedItem.AddInstruction from Templating or from a Custom Renderer. Second note, you can use the ITransportHandler also for publish, not just unpublish.Longer answer:

  • For unpublish you can only use the ITransportHandler.

  • For publish you can use both the RenderedItem.AddInstruction and ITransportHandler, but it's better to use the AddInstruction because it's an API call and not direct XML manipulation. Note that you can use the RenderedItem.AddInstruction from two places: Templating, or from a Custom Renderer. Again it depends on your needs.

PS. Some shameless self promoting, but feel free to see my talk at this year's TDS. It's related to your question.

It is.

Note that, you can use the RenderedItem.AddInstruction from Templating or from a Custom Renderer. Second note, you can use the ITransportHandler also for publish, not just unpublish.

PS. Some shameless self promoting, but feel free to see my talk at this year's TDS. It's related to your question.

Short answer, it is the preferred way, yes.

Longer answer:

  • For unpublish you can only use the ITransportHandler.

  • For publish you can use both the RenderedItem.AddInstruction and ITransportHandler, but it's better to use the AddInstruction because it's an API call and not direct XML manipulation. Note that you can use the RenderedItem.AddInstruction from two places: Templating, or from a Custom Renderer. Again it depends on your needs.

PS. Some shameless self promoting, but feel free to see my talk at this year's TDS. It's related to your question.

Source Link
Atila Sos
  • 6.3k
  • 2
  • 16
  • 26

It is.

Note that, you can use the RenderedItem.AddInstruction from Templating or from a Custom Renderer. Second note, you can use the ITransportHandler also for publish, not just unpublish.

PS. Some shameless self promoting, but feel free to see my talk at this year's TDS. It's related to your question.