Widget: Reading List

The following requires that you have Media Manager installed, and if you are using a more recent version of Media Manager, this widget may have been installed for you. This widget displays a list of books labeled with a status of “reading” and links them automatically to Amazon.

Template Code

Use the following code and create a new template module called “Sidebar: Reading List”.

<div class="module-archives module">
  <h2 class="module-header">Recent Posts</h2>
  <div class="module-content">
    <ul class="module-list">
      <MTBookQueueEntries catalog="Books" status="reading" sort_order="descend" lastn="2" sort_by="modified_on">
      <li class="module-list-item amazon-list-item"><MTAmazon method="Asin" search="[MTBookQueueEntryISBN]">
      <a href="<MTAmazonLink>"><img src="<MTAmazonImage shadow="right" size="medium">" border="0" alt="<MTAmazonTitle>" /></a>
      <p><a href="<MTAmazonLink>"><MTAmazonTitle></a><br />by <MTAmazonAuthor></li>
      </MTAmazon>
      </MTBookQueueEntries>
    </ul>
  </div>
</div>

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About Majordojo

"Majordojo" is the name under which Byrne Reese releases the software he writes. Byrne Reese is a father, a product engineer, an open source hacker and an employee of Six Apart.

 Subscribe to this site's feed

View Byrne Reese's profile on LinkedIn

Recent Comments