View Single Post
Old 08-07-2013, 07:04 PM   #9
nathanashton
Junior Member
nathanashton began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2013
Device: Kindle
Thanks Rainer. I managed to hack together a link on the title_detail page that simply searches Amazon based on the Title, Author and Year all combined.

<a href="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords={{ book.title }} {% for author in authors %}{{ author.name }},{% endfor %}{{ book.pubdate | date("Y") }}" target="_blank">View Book on Amazon</a>

Are there any ID's or similar (ISBN maybe?) that I could use to link directly to the book on Amazon instead? Something that takes me directly to the book rather than search results? At the moment it returns search results that works most of the time, but it wont work with non-standard characters in the title (C# etc).

Your PHP skills are way too advanced for me to understand myself

Cheers
nathanashton is offline   Reply With Quote