Open ziodave opened 7 years ago
We can display topics and entities in the attachment window popup, Media Library, above the embed code:
In class-helixware-template-service.php (around ln 300) we can extend the current HelixWare call to load additional data from MICO using an AJAX call.
However we need the attachment GUID in order to query the remote service.
The GUID is in the form of http://cloud-test.helixware.tv/api/assets/xyz and it's already set by the HelixWare plugin for WordPress.
Now we can get topics using http://wordpress/wp-admin/admin-ajax.php?action=hx_topics&id=60785
And entities using http://wordpress/wp-admin/admin-ajax.php?action=hx_entities&id=60785
See https://github.com/insideout10/mico-gateway/issues/1