insideout10 / helixware-mico-plugin

HelixWare MICO Extensions for WordPress
0 stars 0 forks source link

Display topics and entities discovered by MICO #5

Open ziodave opened 7 years ago

ziodave commented 7 years ago

See https://github.com/insideout10/mico-gateway/issues/1

ziodave commented 7 years ago

We can display topics and entities in the attachment window popup, Media Library, above the embed code:

image

ziodave commented 7 years ago

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.

ziodave commented 7 years ago

However we need the attachment GUID in order to query the remote service.

ziodave commented 7 years ago

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.

ziodave commented 7 years ago

Now we can get topics using http://wordpress/wp-admin/admin-ajax.php?action=hx_topics&id=60785

ziodave commented 7 years ago

And entities using http://wordpress/wp-admin/admin-ajax.php?action=hx_entities&id=60785