<?php // put this inside your Module's compile method to give a quick try // in this example we'll query the tl_page table // we pass $this->Template to assign vars to current template // set "tl_page" as namespace $l = new ZedSeriesListing('tl_page'); // you can set "frontend module" params through php code $l->setFields('id,pageTitle,language'); $l->setSearchFields('pageTitle'); $l->setWhere('published = 1'); $l->setSorting('tstamp DESC'); $l->setPaging(5); $l->query(); // $this->Template is created automatically by the (Backend|Frontend)Module $lt = new ZedSeriesListingTemplate($l, $this->Template); $lt->assignListingVars(); $lt->assignSearchVars(); $lt->assignPaginationVars();
Tuesday, October 27, 2009
ZedSeries Listing new class available in version 1.5
Starting from version 1.5 ZedSeries Listing features a class that let you create listing with a few lines of code:
Etichette:
developers,
zedseries_listing
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment