Прошу помощи
Надо сделать табличный вывод тизера везде, кроме главной
прочитал это (http://forum.joomla-...pic,2504.0.html) и это (http://forum.joomla-...pic,2068.0.html)
Я не силен в php. Думаю ошибок много в листинге
вот мой фаил teaser.php
Правильно ли я понял что надо изменять teaser.php ? или надо этот код вставить в
/catalog/renderer/item_columns/Название-app.php
<?php defined('_JEXEC') or die('Restricted access'); $this->app->jbassets->tablesorter(); //Определяем переменную вида категории (JRequest::getVar('view') == 'category') ? $category = true : $category = false; //Показ только на главной if(!$category) : ?> <tr class="table-row item_<?php echo $item->id;?>"> <td> <h4 class="title"><?php echo $this->renderPosition('title'); ?></h4> </td> <td><?php echo $this->renderPosition('gallery'); ?></td> <td> <div class="price"> <?php echo $this->renderPosition('price'); ?> </div> </td> <td><?php echo $this->renderPosition('properties'); ?></td> </tr> <?php endif; //Показ на всех страницах категорий, кроме главной if($category){ if ($vars['count']) : ?> <table class="jsTableSorter tablesorter"> <caption>В продаже квартиры и дома</caption> <thead> <tr> <th>Фото</th> <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; }