Лучший Ответ SmetDenis , 23 July 2013 - 09:56
Hi
So sorry for my late reply.
Create Item teaser template, as example
media/zoo/applications/jbuniversal/templates/catalog/renderer/item/<TYPE ALIAS>/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> </tr>Define new placeholders in positions.xml
<?xml version="1.0" encoding="utf-8"?> <renderer> <!-- add this block --> <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> </positions> <!-- /add this block --> </renderer>Create new template in
media/zoo/applications/jbuniversal/templates/catalog/renderer/item_columns/<APP ALIAS>.php
for example
<?php defined('_JEXEC') or die('Restricted access'); $this->app->jbassets->tablesorter(); // include jQuery Tablesorter JS+CSS if ($vars['count']) : ?> <table class="jsTableSorter tablesorter zebra"> <caption>Table</caption> <thead> <tr> <th>ID</th> <th>Name</th> <th>Image</th> <th>Field #1</th> <th>Field #2</th> <th>Field #3</th> </tr> </thead> <tbody> <?php foreach ($vars['objects'] as $object) : echo $object; endforeach; ?> </tbody> </table> <!-- table sorter jQuery plugin --> <script type="text/javascript"> jQuery(function ($) { $('.jsTableSorter').tablesorter({}); }); </script> <?php endif;Also you can choose template in category configurations
Sorry, but images can be uploaded only our subscribers. Try using free services for screenshots. Перейти к сообщению