Latest Updates: Our Blog

Entries on: publishing

Navis DocumentCloud plugin for WordPress

Posted
Jun 22nd, 2012

Tags
Code , ,

Author
Samantha Sunne

Chris Amico had a problem he wanted to solve: when bloggers posted a document from DocumentCloud into WordPress, switching between the Visual and HTML modes destroyed the embed code. So he created Navis DocumentCloud, a plugin designed to protect the javascript from the Visual Editor.

“That crux of it is that it makes it safe to drop a document into WordPress and be certain that it won’t be broken,” said Amico, of the plugin he authored as an application developer for NPR’s StateImpact project.

Users can post their document using a DocumentCloud button on the post’s toolbar in Visual mode, or a shortcode in HTML mode.

documentcloud button

The plugin also allows users to configure the width and height of the document viewer in an administrative panel in the Settings menu. The “Full-width” option is designed to make the document viewer as wide as the post content.

“We wanted to give reporters the ability to make a post that is basically just the document,” Amico said.

wp_plugin2

The plugin is available on GitHub and the Project Argo site. StateImpact is a spinoff project of Project Argo, which are both run by NPR. Amico said he wanted to help bloggers use DocumentCloud because he used it as a reporter for PBS NewsHour. “At some point, my plan is to put it into WordPress’s plugin directory,” Amico said.


Samantha Sunne volunteers with DocumentCloud at its hub in Columbia, Missouri. She studies investigative and multimedia reporting at the University of Missouri.

New Embedding Options

Posted
Feb 2nd, 2011

Tags
Workspace , ,

Author
Jeremy Ashkenas

You already know you can link directly to any page or annotation. Now you can embed documents so that they’ll open to any page or annotation, too. If you want to point your readers to the shocking revelation on page seventy five or open the viewer directly to a key annotation, check out our new embed dialog.

Select any document and choose “Embed Document Viewer” from the “Publish” menu, and you’ll find a new configuration option:

This document will open to an annotation on page 30. When you view the embed code, you’ll see the page number and annotation id designated in the javascript. Give it a try, and let us know what you think.

We build features like this because our users ask for them &emdash; what do you need DocumentCloud to do?