During the implementation that I am currently working on, we use something like a second solution. I have added the main publication of the website (in which we create all pages) to the publication goal that we use for all websites so that we can use the publication for all child publications. If it fits in your model, I would prefer this option, as it continues to give you control over objects by localization in child publications.
Since we didn’t want the content to be published in the publication on the main website (since it will not go anywhere and it will be just a waste of time for my publisher, and then also the loss of the brokerage repository when it is deployed), we created a ChildOnlyPublicationResolver ( SDL Tridion 2011). In this resolver, we iterate over all the allowed elements, and if the element comes from the main publication of the website, we remove it from the list.
As a result, you will see that the publication of the main site appears in the publication queue, but it will be successful almost instantly, since there is nothing in it. Thus, it does not accept any results from the publisher and is not deployed, but you retain the benefits of your child publications and have an easy way to publish them at a time.
If this is interesting, here is a sample recognizer code:
using System.Collections.Generic; using Tridion.ContentManager; using Tridion.ContentManager.Publishing; using Tridion.ContentManager.Publishing.Resolving; namespace SDL.Example.Resolvers { public class ChildOnlyPublicationResolver : IResolver {
Bart koopman
source share