Neil
Neil

Reputation: 2688

Quick check of Tridion Link Propagation

Just when I think I understand how Tridion resolves links ....

According to the docs about Component links -

If you unpublish a Component, any Components that link to that Component are not unpublished.

Does this only relate to DCPs?

We have components used in DCPs and within component links. When I unpublish the component e.g. C5, in the "items to unpublish" list, I see pages that are only connected to C5 through component links - I've opened several pages from the list and none use the component directly in a CP, but it is linked to from another component on the same page:

Page P1
        CP1
            C1 + CT1
        CP2
            C2 + CT2
            (C2 links to C3 below)

Page P2
        CP1
            C3 + CT3
        CP2
            C4 + CT4
            (C4 links to C5 below)

Page P3
        CP1
            C5 + CT5

When I unpublish the component C5, Page P1 is in the unpublish list - that's correct behaviour right?

EDIT

Apologies, this is Tridion 2011 SP1.

Upvotes: 3

Views: 202

Answers (2)

Alvin Reyes
Alvin Reyes

Reputation: 2887

Unpublishing C5, as a DCP used by a page and static content, should:

  • Leave P3 alone, since it includes C5 as a dynamic Component Presentations
  • Unpublish C4 and as a (non-dynamic) component embedded on a page, this will also...
  • Unpublish P2 (if already published)

The question is if unpublishing P2 should unpublish C3 and therefore C2 and the P1 page it's embedded on (statically). Unpublishing a page with a non-dynamic embedded CP doesn't unpublish other pages at least for my SDL Tridion 2011 SP1-1 setup.

But, because the dynamic component is linked to by a "static" component, I'm thinking the best case here is to remove and publish the page. Otherwise you'll have other pages like P2 removed if you really just meant the DCP.

Upvotes: 0

Asier Fernández
Asier Fernández

Reputation: 494

I would think that is indeed the wrong behavior. Unpublishing of a component should not unpublish all the pages containing components with component links to the component we are unpublishing.

EDIT

@Neil, the only things I can think of that could trigger the behavior you describe are the following:

  1. 2009 or older. TBB, Workflow or EventSystem with code to publish/unpublish components according to your description.
  2. 2011 GA or newer. TBB, Workflow, EventSystem or resolver extension with code to trigger the behavior you explain in your post.
  3. Unlikely but is still possible, a bug :)

Upvotes: 2

Related Questions