Answer the question
In order to leave comments, you need to log in
How to display content?
Guys help to display a table with content:
So the table view:
I create documents with content
Where, for example, in the document "Price List" I write out:
<h2 class="w-100 text-center">Вопрос</h2>
<div class="table-responsive-sm">
<table class="table table-bordered table-hover table-sm">
<caption>Ждем ваших звонков и сообщений!</caption>
<thead class="thead-dark">
<tr>
<th scope="col" class="align-middle text-left">Наиминование</th>
<th scope="col" class="align-middle text-center">Ед. изм.</th>
<th scope="col" class="align-middle text-center">Цена, грн</th>
<th scope="col" class="align-middle text-center">Цена, грн нов</th>
<th scope="col" class="align-middle text-center">Цена, грн б/у</th>
<th scope="col" class="align-middle text-center">до 0,5</th>
<th scope="col" class="align-middle text-center">от 1кг</th>
<th scope="col" class="align-middle text-center">от 5кг</th>
<th scope="col" class="align-middle text-center">Вес</th>
</tr>
</thead>
</tbody>
</table>
</div>
<tbody class="thead-ligt">
<tr>
<th scope="col" colspan="9" class="align-middle text-left"></th>
</tr>
</tbody>
<tbody>
<tr class="table-secondary">
<th scope="row" class="align-middle text-left"><a href="" class="text-body"></a></th>
<td class="align-middle text-center">грамм</td>
<td class="align-middle text-center">-</td>
<td class="align-middle text-center">-</td>
<td class="align-middle text-center">-</td>
<td class="align-middle text-center">9</td>
<td class="align-middle text-center">9.4</td>
<td class="align-middle text-center">9.8</td>
<td class="align-middle text-center">-</td>
</tr>
</tbody>
Answer the question
In order to leave comments, you need to log in
1. It is better to use pdoResources from the pdoTools package, it is faster and more convenient. The parameters are generally the same.
2. In TableTpl, you need to write &parents=`121303` to pull the output from the desired document.
3. In general, it would be most logical to make one pdoResources output at the top level (document 2 - Price List), which will go through the child documents (&depth=`0`), and in the output template write another call to pdoResources, which will go through by nested documents (&parents=`121303`).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question