Jump to content


Photo
- - - - -

Вывод связанных материалов в виде таблице в шаблоне full


2 replies to this topic

#1 Зульфия

Зульфия
  • JBZoo User (rus)
  • User rate: ~
  • posts: 2
  • topics: 1

Posted 26 August 2016 - 07:26

Уважаемая администрация подскажите что подправить в full чтобы связанные материалы выводились в виде таблицы?

Заранее спасибо.

 


  • 0

#2 Vseprosto

Vseprosto
  • JBZoo User (rus)
  • User rate: 8.6
  • posts: 235
  • topics: 16

Posted 26 August 2016 - 07:47

в шаблоне full создайте позицию и обрамите ее таблицей

<table class="jsTableSorter tablesorter zebra items">
                           <thead>
                             <tr>
                              <th>Название</th>
                              <th>Диаметр</th>
                              <th>Рабочая длина</th>
                              <th>Кол-во в упак.</th>
                              <th>Цена</th>
                              <th>Кол-во</th>
                              <th></th>
                             </tr>
                            </thead>
                            <tbody>
                            <?php echo $this->renderPosition('komplekt'); ?>
                            </tbody>
 </table>

в элементе вывода связанных материалов поставьте например шаблон related (или создайте свой) и в качестве разделителя поставьте space а в самом шаблоне related сделайте так

<tr>
    <td><?php echo $this->renderPosition('title'); ?></td>
    <td><?php echo $this->renderPosition('param1'); ?></td>
    <td><?php echo $this->renderPosition('param2'); ?></td>
    <td><?php echo $this->renderPosition('param3'); ?></td>
    <td><?php echo $this->renderPosition('param4'); ?></td>
    <td><?php echo $this->renderPosition('param5'); ?></td>
     <td><?php echo $this->renderPosition('param6'); ?></td>
  </tr>

  • 1

#3 Зульфия

Зульфия
  • Topic Starter
  • JBZoo User (rus)
  • User rate: ~
  • posts: 2
  • topics: 1

Posted 26 August 2016 - 08:00

Спасибо ещё раз за помощь!


  • 0




Click to return to top of page in style!