How to set IsPublishedTo status on a Tridion Component?

前端 未结 2 982
说谎
说谎 2021-01-13 22:14

After a Tridion CMS Database restore from another environment we cannot unpublish Components from the Broker. If we publish to the Broker then we can unpublish. We want to

2条回答
  •  再見小時候
    2021-01-13 22:34

    Components themselves are never published from Tridion, they are only published as part of a Component Presentation (Component + Component Template).

    The SetPublishedTo method on a Component Template takes a Component as a parameter. So by calling it you can set one Component Presentation as Published or Unpublished.

    Once you've unpublished all Component Presentations of a Component, that Component implicitly becomes Unpublished.

提交回复
热议问题