Content last modified Sunday 7 September 2008
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

jgh_amazon

This module can be used to print out a specific book information form amazon.

This done via the aws-api fully automatically. The requested data will be stored in a database table called txp_jgh_amazon. The Plug-In checks if the book is already put into the database or not. To print out the book information you must call this taghandler with a valid amazon book-isbn (asin).

Please note, that this Plug-In is still in beta and so it calles only the german aws-api of amazon. The final version will call other language as well.

You can play around … some data will be present for all languages as default.

TXP Tag:

To call this Plug-In you have to use this TXP-Tag inside your content:

<txp:jgh_amazon asin="valid-book-asin" [attributes] />

The asin-Attribut is a must be! Other possible attributes are:

azid
this is your amazon associates-id. this is normaly also a must be, but if you don’t set this for the default layout it prints out my id ;o)

lang (de|en|uk)
this is to call the amazon-catalog by country the default is ‘de’ for germany.
uk is united kingdom and en america.

A full e.g.
<txp:jgh_amazon asin="valid-book-asin" azid="your-id" lang="uk" />

1) Default Layout

The standard-layout of the output is called by the following TXP-Tag:
<txp:jg_amazon asin="valid-book-asin" />

Be sure to use a valid book-asin!

2) Custom Layout

For those users who want to have here own layout (puh *g*) of the returned bookinformation, can call the Plug-In like that:

<txp:jg_amazon asin="valid-book-asin" [attributes]>
This Book is called %title% it has the ASIN %asin%.
The price is %price%.
</txp:jg_amazon asin="valid-book-asin">

As you see, you can build a custom layout between the opening and closing TXP-Tag. Remember to call a valid book-asin. Your Layout has no restrictions.
All possible variables are called like %var_name%.

Layout Variables:

%title%
%fauthor%
%sauthor%
%manufact%
%release%
%media%
%ship%
%price%
%asin%
%imgs%
%imgm%
%imgl%

Note: Detailed explanation of this variables comes later … so just play around ;o)

ToDo:

  • First of all, better english writing (just a quick hack ;o)
  • Unlimited book request at once (e.g. for table print out)
  • Think about more features, hope about your input/feedback …

Oki, reade to use :o) So if you have some ideas, talk back to the forum thread ;o)

It’s small an simple.

Article Request Count:
Initially released:
06.07.2004
Posted here:
17 Mar 2005
Article modified:
17 Mar 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

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

Commented (1)

Chugs:
The download link for this plugin doesn’t work. Can somebody point me to an active link?
Or if anybody has the plugin installed could you please paste it here or put it up somewhere or mail it to me (chugs_1976 at yahoo dot com). Any help would be much appreciated.
Thanks.

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

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
TxP · TxD · GG