The attached file adds views support to the amazon package.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | amazon_views_0.inc | 2.77 KB | eaton |
| #1 | amazon.module_1.patch | 554 bytes | eaton |
| amazon_views.inc | 2.09 KB | eaton |
The attached file adds views support to the amazon package.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | amazon_views_0.inc | 2.77 KB | eaton |
| #1 | amazon.module_1.patch | 554 bytes | eaton |
| amazon_views.inc | 2.09 KB | eaton |
Comments
Comment #1
eaton commentedAnd this one includes the file if views.module is present.
Comment #2
Prometheus6 commentedThanks. I'll review this quickly.
Comment #3
eaton commentedActually, here's an updated version of the amazon_views.inc file that adds a filter: 'has amazon link.' That allows people to build lists of nodes that include links to amazon items, regardless of the node type.
Comment #4
Prometheus6 commentedSeriously, does that cover integration with the views module? I haven't looked at it yet.
Comment #5
eaton commentedIt certainly seems to. I have a sample view exposed right now on my blog -- http://jeff.viapositiva.net/amazon ... It filters to list only nodes with an associated ASIN, and lists the book title as a clickable link, the price, etc. There might be sneakier tricky bits to add in later, but it does cover all the views bases I can think of.
Also, because it's kept in a separate file and only included if views.module is installed, there's little code bloat for the core amazon module.
Comment #6
Prometheus6 commentedOne patch committed, one include file added.