Best approach to disable link resolution?

I understand that in the SDL Tridion 2011 implementation there are two options for disabling link resolution. Therefore, when a component is published, not all related components will also be reissued.

These two ways:

  • Using the event system , subscribing to a publication event and modifying permission instructions as follows:
args.PublishInstruction.ResolveInstruction.IncludeComponentLinks = false; 
  • Using a custom converter and implementing the Tridion.ContentManager.Publishing.Resolving.IResolver interface

Question: which of these options is preferable and why?

+4
source share
1 answer

I would say that the event system is the most efficient. The resolver will work, but you will be "after processing" the allowed elements. By this, I mean that you will filter items from the publication transaction that were added by the default recognition engine. An even system will prevent these links from being resolved first.

+4
source

Source: https://habr.com/ru/post/1435908/


All Articles