Skip navigation
Currently Being Moderated

Is there a way to get the publish service from a published photo?

Apr 17, 2012 4:11 AM

Tags: #publishservice #publishedphoto

Is there a way to get the publish service from a published photo?

 

I mean other than by inspecting every published photo in every published collection...

 

Undocumented method or member?

 
Replies
  • Currently Being Moderated
    Apr 17, 2012 8:36 AM   in reply to Rob Cole

    I think the best you could do is:

     

    publishedPhoto:getPhoto():getContainedPublishedCollections()

     

    to get all publishedCollections that contain the underlying photo.  But then you'd have to iterate through those publishedCollections to get all their publishedPhotos to see if they actually contained the desired publishedPhoto (they may not). 

     

    If you're doing this for multiple publishedPhotos, caching the results of publishedCollection:getPublishedPhotos() would probably ensure that performance is acceptable.

     

    The publish APIs do seem somewhat incomplete.  There have been a number of threads in the past about similar missing capabilities, e.g. see:

     

    http://forums.adobe.com/thread/810699

    http://forums.adobe.com/message/3371740

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points