The WordPress plugin â€“ which builds upon an earlier version developed by Chris Amico for NPRâ€™s StateImpact project â€“ adds the ability to embed notes as well as documents using shortcodes. And weâ€™ve updated our embed wizard so it will generate the WordPress shortcodes for you like this:
[documentcloud url="http://www.documentcloud.org/documents/1699074-sb0101-05-enrs/annotations/210824.html" ]
Which embed like this:
The plugin is powered by our new oEmbed API. It's our next step in helping you integrate DocumentCloud embed codes into your content management system soÂ embedding documents and notes isÂ as simple as pasting in a URL.
You can install our plugin right now by visiting its WordPress page. Developers interested in adding simple embedding with our oEmbed API can find its documentation in our help pages.
Read on for more details:
Since 2011, WordPress users have been able to embed documents on their blogs thanks to a plugin created by Chris Amico for NPRâ€™s StateImpact project.
Chrisâ€™ plugin let users embed documents with shortcodes by translating the shortcodes into HTML embed codes.
With Chrisâ€™ help, and input from Adam Schweigert of the Project Largo team, weâ€™ve released a new version of the plugin that adds:
- Note Embeds: You can now embed individual notes as easily as documents. Just pass a note URL into the shortcode with the
- Raw URL Support: You can now paste the URL for a document or note onto its own line, and the plugin will translate that into an embed.
- oEmbed Support: Embed codes are now fetched from our oEmbed service rather than generated internally, so theyâ€™ll always be up to date.
Full installation and usage instructions are available on the plugin page.
Note for users of the existing plugin: Because weâ€™re releasing a whole new plugin, prior installations of Navis DocumentCloud wonâ€™t automatically update. Youâ€™ll have to deactivate/delete Navis DocumentCloud from your site and install the new plugin. Sorry! This should be a one-time process, and future updates will be delivered through the normal WordPress update mechanism.
Weâ€™ve added an oEmbed API to make it easier for developers to get embed codes for documents and notes. oEmbed has become a standard for easily embedding Web content, and it has long been one of our usersâ€™ top feature requests. Now, instead of having to reverse engineer the format of our embed codes, developers can just send a request to the DocumentCloud API to ask for a correctly formatted embed code.
If youâ€™d like your CMS to support embedding documents as easily as DocumentCloudâ€™s WordPress plugin, you or your developers can read more about our oEmbed service in our API help pages.
Thanks for reading.Â Follow us on twitter for more updates.