Skip Navigation

[Résolu] Move data from rows to columns

This support ticket is created Il y a 6 années et 4 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Marqué : ,

Ce sujet contient 8 réponses, a 2 voix.

Dernière mise à jour par toolset-dave Il y a 6 années et 4 mois.

Assisté par: Luo Yang.

Auteur
Publications
#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: lien caché 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: lien caché

#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:
lien caché

You need to add more rows in the table, and you can test the result here
lien caché

For your reference.

#953207

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

#953208

Solved