Hi, I need to move data from rows to columns in the view. It´s a pricelist table for products and each product should be in a column, not in row. Nice example is here: hidden link How to achieve this? Thank you.
<code
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%">
<thead>
<tr>
<th>Název tarifu</th>
<th>URL tarifu</th>
<th>Prostor</th>
<th>Český jazyk</th>
<th>Anglický jazyk</th>
</tr>
</thead>
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<tr>
[wpv-post-body view_template="Loop item in Zobrazení tarifů"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
[/php]
Hello,
You can consider the grid layout mode, for example "Table-based grid":
https://toolset.com/documentation/user-guides/view-layouts-101/#grid
All the content of each element in your loop will be displayed within a single table cell – <td></td>.
Hi Luo,
I tried many times to create Table-based grid, but I am not able to make it as I described before. Can you show me how to achieve this: The first column must have fixed labels. And the second column and other columns must be repeatable field groups. Here you can see the original table: hidden link
OK, please provide a test site with same problem, fill below private message box with login details, also point out the problem page URL and view URL, I can setup a demo for you.
The credentials, you provided is not valid, I get this error:
CHYBA: Chybně zadané heslo pro uživatelské jméno admin.
Please check it, thanks
Sorry, I wrote you wrong login, please use instead of the previous one this: "toolset" and the given password. Thank you.
It needs a table with only one row.
I have setup a demo view here:
hidden link
You need to add more rows in the table, and you can test the result here
hidden link
For your reference.
Thank you, Luo, for the example. It helped me a lot!