2

Is there an API call in 2009 SP1 to set a component to unpublished similar to objPage.SetPublishedTo?

1

1 Answer 1

3

This is where, again, Tridion is technically correct... but it takes some mind-twisting to find it.

Components are not published - component presentations are. To set a component presentation as unpublished, use the ComponentTemplate's class "SetPublishedTo" method. I can't recall the details anymore, pretty sure you need to pass something like component URI + Publication Target and you're all set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.