Skip Navigation

[Resolved] Move data from rows to columns

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by toolset-dave 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#936568

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]

#948273

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>.

#948713

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

#948913

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.

#950005

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

#950056

Sorry, I wrote you wrong login, please use instead of the previous one this: "toolset" and the given password. Thank you.

#950064

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.

#953207

Thank you, Luo, for the example. It helped me a lot!

#953208

Solved