toolness / hive-django

A Django-based Hive website for member organizations, their employees, and other community members.
https://directory.hivelearningnetworks.org
1 stars 10 forks source link

[WIP] Show related Hive blog posts on organization detail pages #47

Closed toolness closed 9 years ago

toolness commented 9 years ago

If Hive cities (which all seem to use Wordpress) tag relevant organization-related blog posts w/ the organization's directory slug, we can show excerpts of those posts on organization detail pages.

For instance, here's the RSS feed for the urban-arts-partnership tag on the Hive NYC blog, according to the WordPress Codex:

http://hivenyc.org/tag/urban-arts-partnership/feed/

The related blog posts appear on an organization's detail page and look like this:

capture

This has been done by adding a new cityblogs app to the Django project. It introduces a new CityBlog model that simply associates a City with a wordpress blog URL.

The panel is actually loaded asynchronously via ajax, so that fetching the related Wordpress RSS feed doesn't block the whole page from loading. RSS feed data is also cached using Django's low-level caching API.

This pull request supersedes #45.

Tasks left: