Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

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.

Get it

Plugin available here

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

You know you want to visit the Archives.
Published with Textpattern