Content last modified Sunday 12 February 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

pat_amazon_isbn

pat_amazon_isbn plugin

Purpose

This Textpattern CMS plugin converts ISBN13 format numbers to access the corresponding book page on Amazon stores (support for internationalization).

Usage

<txp:pat_amazon_isbn number="" url="" tooltip="" title="" />

Attributes

  • number: Your ISBN13 number [1]. Default: none (empty) .
  • url: Main URL domain for Amazon. Default: http://www.amazon.com (american store).
  • tooltip: Text for the tooltip link. Default: Access to Amazon store.
  • title: Title of the link. Default: Buy on Amazon.

The plugin checks and validates all attributes.

Example

<txp:pat_amazon_isbn number="978-1118008188" url="http://amazon.com" tooltip=" On the Amazon Store " title="Buy on Amazon" />

The code above will produce an HTML link to the Amazon.com corresponding sell page for the book with the ISBN13 number 978-1118008188.

Example with a custom field

<txp:if_custom_field name="ISBN"><txp:pat_amazon_isbn number='<txp:custom_field name="ISBN" />' url="http://amazon.com" tooltip=" On the Amazon Store " title="Buy on Amazon" /></txp:if_custom_field>

Notes

1 It don’t care about how you set the ISBN13 number. (i.e. Both are accepted: 978-1118008188 or 978-1-118008-18-8) even without any dashes.

Change log

13 nov 2013: v0.1, first release.

Get it

Plugin available here

Article Request Count:
Keywords/tags:
Initially released:
11/13/2013
Posted here:
16 Nov 2013
Article modified:
16 Nov 2013

Comments/questions? Leave a message in the form.

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.