CC Open Source Blog

GSoC CC Wordpress Plugin: Weekly Report #2

author's gravatar

by erlehmann on 2010-06-08

For last week's work on the plugin, I had two targets, both related to the goal of making the interface functional: First, saving license , rights holder and attribution URL in the database and enabling the Wordpress media manager to display that information; second, generating the RDFa -enriched markup using those aforementioned three bits. While I succeeded in generating the markup, when trying to actually save the input, I hit a wall, neither being able to figure out how this should be done, nor how it could be done. By the way, a blog post about a thumbnail plugin helped me understand which hooks are actually important.

The added functionality is easily explained: If a Creative Commons license is selected, the standard Wordpress markup generating behaviour is replaced by the plugin's. Two screenshots exemplify this development:

As always, this version can be viewed and checked out at the official Git repository. For this week, I will be focusing on stylesheets and trying to further tackle the saving issue.

On a related note, the inconsistent order of parameters regarding Wordpress functions, the lack of easy debugging facilities and the subtle differences between double quoted and single quoted strings added to my frustration. [ URL]: Uniform Resource Locator [RDFa]: Recourse Description Framework in Attributes