Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar widget for Document List embed #13

Open
eyeseast opened this issue Jul 10, 2014 · 2 comments
Open

Sidebar widget for Document List embed #13

eyeseast opened this issue Jul 10, 2014 · 2 comments

Comments

@eyeseast
Copy link

I did the first version of the sidebar widget on Homicide Watch just using a regular text widget. Is it worth trying to make this easier without duplicating a lot of documentcloud.org functionality?

@reefdog
Copy link

reefdog commented Apr 14, 2015

@eyeseast Hmm, maybe so. Do you want to flesh out the use case, perhaps share how you did yours?

@eyeseast
Copy link
Author

Sure @reefdog. All I did was use the standard DocumentCloud document list widget in a text widget:

<div id="DC-search-group-homicide-watch" class="DC-search-container"></div>
<script src="http://s3.documentcloud.org/embed/loader.js"></script>
<script>
  dc.embed.load('http://www.documentcloud.org/search/embed/', {
    q: "group: homicide-watch",
    container: "#DC-search-group-homicide-watch",
    order: "created_at",
    per_page: 5,
    search_bar: false,
    organization: 170
  });
</script>

It's a perfectly serviceable way to get a sidebar widget with my recent documents in it. You might have a more WordPress-y widget that let you choose those options from within the WP admin, but like I said above, you might end up just duplicating a bunch of functionality that's already in the DocCloud admin (and easy enough to use there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants