Copy link to clipboard
Copied
Unless I'm misunderstanding something, the publish service callback
Copy link to clipboard
Copied
There's no way for a plugin to access the custom order of a collection, much less get notified when the order changes :-< You could publish a feature request:
Though Adobe has made very few changes to the SDK over the past many years.
Copy link to clipboard
Copied
The publish service callback imposeSortOrderOnPublishedCollection() is how the plugin is notified the sort order has changed (assuming the publish service set 'supportsCustomSortOrder' to true. My issue isn't that the plugin isn't being notified of the sort order change. My issue is when/how the plugin is notified. The imposeSortOrderonPublishedCollection() callback isn't called unless there is something else to publish/republish. One of the parameters passed to that callback is:
"3. remoteIdSequence(array of string or number) The IDs for each published photo that was stored via exportRendition:recordPublishedPhotoId"
So the order presented to the user and the order on the publish service can diverge without any notification to the user.
I wanted to confirm I wasn't missing something before posting as a feature request
Copy link to clipboard
Copied
Understood, I was responding to your question, "If there is some SDK call or listener that I should be using to monitor the sort changes, I'm not aware of it nor can I find it in the SDK docs."
You're not missing anything, unfortunately.
Copy link to clipboard
Copied
Got it! Sorry I misunderstood you.