If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
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.