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:
The related blog posts appear on an organization's detail page and look like this:
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:
[x] Ensure that Editors can change the city blog for their city.
[x] Ensure that Multi-City Editors can create/change/delete city blogs for any city.
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:
This has been done by adding a new
cityblogs
app to the Django project. It introduces a newCityBlog
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: