how /community-activity page and RSS feeds work

Karsten 'quaid' Wade kwade at redhat.com
Thu Feb 2 23:06:43 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I need to dump this here for now; we can get it in to a
[[Category:Infrastructure documentation]] wiki page soon enough. Jason
and I were working on updating Wordpress (*whew*) from a buggy
version, updating the theme, and solving a problem I'd been worried
about - the hacks we did to the Coraline theme. Jason put together a
parent/child theme that Wordpress uses to make it easy to carry
customizations to a theme.

About the activity feed and page. There are two parts:

1. The sidebar that is shown on the front-page is a Yahoo! Pipes
bundle pulled in with an RSS Feed widget. The Pipes bundle is "the
latest from" all of the feeds comprising /community-activity.

2. The /community-activity page is a Wordpress hack that works like this:

* There is a widget called "First Footer Widget Area" with an
associated CSS class (iirc). I populated this area with a number of
RSS Feed widgets that take the direct RSS from the wiki's latest
changes and gerrit.ovirt.org activity for each project.

* By default this footer widget appears in the footer of every page
using the Default template. I created a new template by copying
full-width-page.php to full-width-page-with-RSS.php. Then I copied the
parts from sidebar-footer.php that call in the "First Footer..."
content, putting that in to full-width-page-with-rss.php. Then I
commented those sections out of sidebar-footer.php, which effectively
remove them from the Default template.

* The page 'community-activity' uses the "Full-width, no sidebar, RSS
feeds" template (aka full-widht-page-with-RSS.php).

* Now that we have the new child-theme arrangement, I copied the
hacked PHP files in to coraline-ovirt/.

- From here, do we just need to check the customizations against updates
in Coraline? So we might need to port hacks to the updated theme if
the files we have don't drop-in-and-just-work?

- - Karsten
- -- 
name:  Karsten 'quaid' Wade, Sr. Community Architect
team:    Red Hat Community Architecture & Leadership
uri:              http://communityleadershipteam.org
                         http://TheOpenSourceWay.org
gpg:                                        AD0E0C41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFPKxcD2ZIOBq0ODEERAv8JAKCbEAy6YTbLVAsYRdVA3iBEcTF/ewCg41cr
wAbe42iTFwOWUQs1MF3yiqw=
=ifVn
-----END PGP SIGNATURE-----



More information about the Infra mailing list