VonBis Artikelanzeige für Affilinator
Mit dem Smarty Template System kann man sehr viele schöne Sachen realisieren. Heute stelle ich euch meine "VonBis"-Anzeige für die Suchtreffer beim Affilinator vor. Einfach den Code in das Template searchProducts.html einfügen. Natürlich kann es leicht modifiziert auch für die Kategorien benutzt werden.
So sieht die VonBis-Anzeige aus:

<h1>Artikel
{math equation="((( x - 1 ) * y)+1 )" x=$searchProducts_data.currentpage y=$smarty.const.NO_OF_SEARCH_RESULTS}
bis
{if $searchProducts_data.currentpage*$smarty.const.NO_OF_SEARCH_RESULTS > $searchProducts_data.totalrecords}
{$searchProducts_data.totalrecords}
{else} {$searchProducts_data.currentpage*$smarty.const.NO_OF_SEARCH_RESULTS}{/if}
von {$searchProducts_data.totalrecords}</h1>
{math equation="((( x - 1 ) * y)+1 )" x=$searchProducts_data.currentpage y=$smarty.const.NO_OF_SEARCH_RESULTS}
bis
{if $searchProducts_data.currentpage*$smarty.const.NO_OF_SEARCH_RESULTS > $searchProducts_data.totalrecords}
{$searchProducts_data.totalrecords}
{else} {$searchProducts_data.currentpage*$smarty.const.NO_OF_SEARCH_RESULTS}{/if}
von {$searchProducts_data.totalrecords}</h1>
Verwandte Beiträge:
- Keine
Trackback
RSS Feed

Loading ...
2 Kommentare
1.
Frank
schrieb am 21. March 2007 um 14:19
Hm, ich denke wir brauchen eine Affilinator Demo URL für deinen Blog, denn so richtig plastisch kann ich mir das noch nicht vorstellen
2.
Axel
schrieb am 22. March 2007 um 01:55
Hier der Link zu einem Beispiel.