Syntax for Amazon Filter
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta3 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I activatet the Amazon Filter for some Content Type and played around a bit. But I cant figure out how the correct syntax for the filter is.
Can someoune please post the correct syntax for amazon filter?
I tried [amazon ASIN] which renders the Amazon Title as textlink to the Produktpage.
when I tried [amazon ASIN image] I get a small produkt image + Amazon title as textlink. But I noticed, it doesnt matter what I write behint the Asin, so [amazon ASIN wathever] works the same.
I am looking for a solution where I have more control. So i could use the syntax to easy insert amazon links in different ways:
-Textlink with Amazon produkt title as linktext
-Textlink with custom link text
-small/medium/large Image
-small/medium/large Image + Textlink
-.and so on..
something like [amazon textlink ASIN]my lintext[/amazon] or [amazon smallimage ASIN] or similar.
Is there a syntax for this?

#1
Link to Amazon products with: [amazon product_id inline|full|thumbnail]. Example: [amazon 1590597559 thumbnail]
The main module seems to store quite a bit of useful information in the database but I cannot for the life of me work out how to get this displayed - I guess it may need some template hackery...
RB
#2
Thanks a lot.
-inline gives me a textlink
-thumbnail gives me a medium image
-full gives me small image + textlink
perhaps this depends on the settings I use in backend for the module (teaser / full view display settings)
The only important thing I am missing, is building a textlink (inline?) with a custum text for the linktext, instead of simple rendering the Produkt Title from the amazon product page as link text.
like I wrote above, something like [amazon ASIN inline]my_linktext[/amazon]
Hope to see this in a future release, so it is possible to quick create custom textlinks to Amazon in the node body.
btw. masking the links would be nice, or at least make them nofollow (as an option).
#3
You will probably want to use edited .tpl.php files or views, both of which work nicely, if you want to manage the links yourself. We'll try to cover these issues on the new documentation page (linked from the project page), so you may want to watch that. Or better yet, start working on it yourself. Reopen this issue if you need further help.
#4
http://drupal.org/node/595464 now has examples tested in http://petermoulding.com/a_drink_before_the_war.
#5
Having tested the filter, I agree with the need for a filter that can be wrapped around other text and HTML.
<amazon asin="123">jkhkjhdkjhfhjd</amazon>is the format I used in a previous filter.<amazon 123 start]jkhkjhdkjhfhjd[amazon 123 end]could work.#6
@peterx, fantastic! Thanks so much.
If you don't mind, I'm going to mark this as fixed and ask you to open a new feature request with a complete description of the new filter type you'd like to see.
Wonderful work. It's great to work with a community.
-Randy
#7
Automatically closed -- issue fixed for 2 weeks with no activity.