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.









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (1)
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.