I added a small Ravelry gallery widget to the right side of my blog. The code provided on Ravelry's API site seems lacking, so I had to write something of my own. I figure this is a common enough usage that others can benefit from it too.
My widget displays 16 of the most recently finished projects that have a picture. Copy and paste the following into a Javascript widget, and replace COUNT and YOUR_RAVELRY_URL with what you want.
Change COUNT to the # of items you want to display, and substitute YOUR_RAVELRY_URL with the special URL that Ravelry generates for you, which you can get here. Copy and paste the Personalized URL on that page (which looks something like http://api.ravelry.com/projects/username/progress.json?key=5ca09d97cbb02b57f942d392adb00518252318bc) into YOUR_RAVELRY_URL.
No comments:
Post a Comment
Thank you for visiting and for your comments! I try to reply to comments, so if you don't hear from me, check if you're a no-reply blogger. Have a nice day!