SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 268 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


We use grid.published to display each record's published state.
This example demonstrates how we process each record in a template and output data
into a grid/table ($rows is an array of objects representing records from the table):
$i = 0;
foreach ($rows as $row) :
$id = JHTML::_('grid.id', ++$i, $row->id);
$published = JHTML::_('grid.published', $row, $i);
Chapter 8
[ 201 ]
?>

';



name; ?>





endforeach;
?>
If $rows were to contain two objects named 'Item 1' and 'Item 2', of which only the
first object is published, the resulting table would look like this:
Not all of the grid types are used for data item elements. The grid.sort and grid.
order types are used to render table column headings. The grid.state type is
used to display an item state selection box, All, Published, Unpublished and,
optionally, Archived.
Access
Gets a text link that describes the access group (legacy group) to which the item is subject.


Pages:
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6