Suncat (
suncat) wrote in
getting_started2010-05-29 06:02 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
LibraryThing widgets
After much hair-pulling and help from another LibraryThing member, I retraced my steps to their instructions for making a widget for LJ-style sites, including Dreamwidth. baggyeyes suggested I mention it here.
This widget works at DW because it doesn't use JavaScript or any such, but relies on data fetched from LibraryThing.
You can see an example on my journal in the sidebar.
This style of widget was described in a blog post at LibraryThing.
no subject
Cool!
Re: Cool!
My LT name is "Suncat", and you can see that as the value of the widget "view" parameter. You can see where I gave the text for the title that is shown at the top of the widget. I set it to be 205 pixels wide, to fit into my sidebar. I also told it to just select books using one of my LT tags: it's set to "art" right now. And I thought there was a widget parameter to say how many books to show, but I sure don't see that in the string. Maybe that's a default of 10, and I decided to just use that. You'll also need to be able to specify colors in hex format if you want to change from the default colors.
Re: Cool!
Thanks again!
Re: Cool!
<div class="ltwidget">
<img src="http://www.librarything.com/gwidget/widget.php?view=okwari&type=random&width=205&top=From my pile of books&bc=fff&ac=ccc&tc=272133&hc=262831&hbold=1&tbold=1"></div>
Re: Cool!