Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

I want to know whether the component latest version is published or not in a specific publication target.

Could you please help me in placing the correct API call.

share|improve this question
1  
duplicate of tridion.stackexchange.com/questions/6124/… –  Raj Kumar Jul 18 at 11:08
    
I am looking for particular component(latest)version is published or not.If not published i will publish it if published i will not publish again. –  Rameshponna Jul 22 at 4:40
    
so by default it will check for latest version only, the link which i posted above should answer your question. –  Raj Kumar Jul 22 at 7:59

1 Answer 1

SDL Tridion publishing is (currently) not version based, which means that at the time an item is published, its latest (checked in) version is used when the item is rendered. The actual version number the item had that that time is not stored on the CM side, so there also is no direct way of retrieving that via the TOM.NET API.

What you could do is write some code which checks the version history of the item, and through that determine what version was possibly published. I deliberately say possibly, since if there are items removed from history, you might not get a correct result back.

Update

As Frank was smart enough to comment, indeed the version of each published item is actually sent along to the Content Delivery side and stored in the Broker storage (in the Items table to be specific).

So you could revert to checking the Content Delivery API, to see if you can determine the version information from there. I didn't bother checking what APIs are available for you on that side ;o)

share|improve this answer
    
IIRC the version number is stored in the broker database. –  Frank van Puffelen Jul 18 at 13:01
    
Yeah. If you have the content Delivery webservice installed, it's a very simple query... –  Nuno Linhares Jul 18 at 13:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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