teaser.php
<?php
defined('_JEXEC') or die('Restricted access');
?>
<tr class="table-row item_<?php echo $item->id;?>">
<td><?php echo $item->id; ?></td>
<td><?php echo $this->renderPosition('cell1'); ?></td>
<td><?php echo $this->renderPosition('cell2'); ?></td>
<td><?php echo $this->renderPosition('cell3'); ?></td>
<td><?php echo $this->renderPosition('cell4'); ?></td>
<td><?php echo $this->renderPosition('cell5'); ?></td>
<td><?php echo $this->renderPosition('cell6'); ?></td>
</tr>
positions.xml
<?xml version="1.0" encoding="utf-8"?>
<renderer>
<positions layout="full">
<position name="title">Title</position>
<position name="image">Image</position>
<position name="properties">Properties</position>
<position name="text">Text</position>
<position name="meta">Meta</position>
</positions>
<positions layout="teaser">
<position name="cell1">Table cell #1</position>
<position name="cell2">Table cell #2</position>
<position name="cell3">Table cell #3</position>
<position name="cell4">Table cell #4</position>
<position name="cell5">Table cell #5</position>
<position name="cell6">Table cell #6</position>
</positions>
</renderer>
table-app.php
<?php
defined('_JEXEC') or die('Restricted access');
$this->app->jbassets->tablesorter(); // подключение библиотеки для сортировки
if ($vars['count']) : ?>
<table class="jsTableSorter tablesorter zebra">
<caption>Виброплиты реверсивные, WACKER (Германия)</caption>
<thead>
<tr>
<th>Модель</th>
<th>Двигатель</th>
<th>Мощность, кВт</th>
<th>Размер плиты основания, мм</th>
<th>Центробежная сила, кН</th>
<th>Вес, кг</th>
</tr>
</thead>
<tbody>
<?php
foreach ($vars['objects'] as $object) :
echo $object;
endforeach;
?>
</tbody>
</table>
<!-- инициализация сортировки -->
<script type="text/javascript">
jQuery(function ($) {
$('.jsTableSorter').tablesorter({});
});
</script>
<?php endif;