MediaAdder¶
-
class
xdm.plugins.bases.MediaAdder(instance=None)¶ These plugins are called periodically and can add/manipulate media entries from other sources.
-
class
Media(mediaTypeIdentifier, externalID, providerTag, elementType, name, additionalData={})¶ Class that holds the information needed by XDM to add the Media
-
root= None¶ this is set by XDM of the Media was succesfully added, it is the element(root) that represents the Media in XDM
-
-
MediaAdder.getConfigHtml()¶ The return value of this function is simply injected in the config panel
default is a html comment: <!– nothing here –> you can use this to add dynamic javascript and/or add additional html
Note
The container this is added in is hidden with inline css. to make use of the html use javascript
-
MediaAdder.runShedule()¶ This method is called periodically and has to return a list of Media objects
-
class