Всем привет! Потребовалось проверять - есть ли в статьях опросы и вывести "птичку" в админке. Собственно решил поделиться решением:
Переопределяем zoo - файл default.php
Далее в нужном месте делаем столбец, в нашем примере будут теги и опросы (от advancepoll):
- <th class="poll">
- <?php echo "<center> Опрос </center>"; ?>
- </th>
- <th class="tags" style="width:50px; text-align:center;">
- <?php //echo "<center> Теги </center>";
- echo $this->app->html->_('grid.sort', 'Tags', 'tTag.item_id', @$this->lists['order_Dir'], @$this->lists['order']);
- ?>
- </th>
и ниже:
- <td class="poll">
- <?php
- if (NULL != $row->getElement('<ELEMENT_ID>')) {
- $checkpoll = $row->getElement('<ELEMENT_ID>')->data();
- $checkpolltxt = $this->app->data->create($checkpoll);
- $valuepolltxt = $checkpolltxt->find('0.value', 'default_value');
- $valuepolltxtpreg = preg_match('/advpoll/',$valuepolltxt);
- if ($valuepolltxtpreg == 1) {
- echo "<center><img src='/administrator/components/com_zoo/assets/images/tick.png' width='16' height='16' border='0' alt='Да'></center>";
- }
- else {
- echo "";
- }
- }
- ?>
- </td>
- <td class="tags">
- <?php $tagsmas = $row->getTags();
- if (isset($tagsmas[0])) {
- echo "<center><img src='/administrator/components/com_zoo/assets/images/tick.png' width='16' height='16' border='0' alt='Да'></center>";
- } else {
- }
- ?>
- </td>

Готово 
