I need to refresh the list in the GUI after a component of a certain type has been created. I already figured out how to refresh the list:
But now I want to have this fired when the popup is closed (or when the save button is clicked) OR when you see the title of the newly created item appear in the list.
(the reason I want the list to refresh is that a 2nd component is created by the EventSystem, which the user should be able to see...)
This only needs to run when a (multimedia) component of a certain schema has been created...
Does anyone know how to hook up to either one of these events?
Scenario: users upload a multimedia component using a specific schema; during the save, the binary is moved to a (temporary) CDN location and a second component is created holding the path to the file on CDN. The original MM component is deleted. So, after saving, the user should see the newly created component and not the (deleted) MM component.
External multimedia components are not an option, since some of the images are under embargo and may not be reachable on the live website yet.
Some FTP upload mechanism is not an option either, since that takes too much time according to client.
I now have this all working using the EventSystem, but I'm left with a deleted component in the folders list and a not yet visible component that the user should actually see, after saving...