source: spip-zone/_plugins_/booksearch/demo/iter_booksearch.html @ 43183

Last change on this file since 43183 was 43183, checked in by fil@…, 10 years ago

plugin booksearch pour la boucle (DATA){datasource SPIP, booksearch}

cf. la page de spip.php?page=demo/iterateurs

https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html

File size: 658 bytes
Line 
1#CACHE{0}
2
3<h1>booksearch</h1>
4
5<BOUCLE_books(DATA) {datasource #ENV{titre,SPIP},booksearch}
6>
7
8[<h1>(#VALEUR{Title}|typo)</h1>]
9
10[<h2>(#VALEUR{Author}|is_array|?{#VALEUR{Author}|join{' - '}, #VALEUR{Author}})</h2>]
11
12<h3>#VALEUR{Publisher}</h3>
13
14<dt>ISBN</dt>
15<dd>#VALEUR{ASIN}</dd>
16
17<dt>Pages</dt>
18<dd>#VALEUR{NumberOfPages}</dd>
19
20<dt>Prix</dt>
21<dd>#VALEUR{ListPrice/FormattedPrice}</dd>
22
23<dt>Publié :</dt>
24<dd>[(#VALEUR{PublicationDate}|affdate)]</dd>
25
26<dt>SalesRank</dt><dd>#VALEUR{SalesRank}</dd>
27
28[<img src="(#VALEUR{MediumImage/URL})" height="[(#VALEUR{MediumImage/Height/_})]" width="[(#VALEUR{MediumImage/Width/_})]" />
29]
30
31<hr />
32
33</BOUCLE_books>
34
35
Note: See TracBrowser for help on using the repository browser.