Sauter la navigation

[Résolu] Search & Pagination Reset not working when View is enclosed in table tags

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user's table is not being generated correctly.

Solution:

In this user's case they were calling the open and closing table tags outside of the view.

Try adding the table tag inside the view itself outside of the tags.

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

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

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

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

Dernière mise à jour par alexG-4 Il y a 5 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#1256969

Please see this video demonstrating my issue

lien caché

In summary, the search / reset and spinner display are all working on a View I created, but when I enclose that view in <table> .. </table>, the reset and spinner display no longer work.

I've tried a number of different options (such as what I show in the video), but nothing makes a difference. I've also tested this with all my JS removed - in case there's some conflict. But again, that didn't make a difference.

Thanks

Alex

#1257413

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for contacting our support forum.

I suspect that the view data is being broken since the table tags are being called outside the view. I suspect that you are using the table row tags inside the view.

Try adding the table tag inside the view itself outside of the <wpv-loop></wpv-loop> tags.

Thanks,
Shane

#1257415

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Just add the table tags outside the <wpv-loop></wpv-loop> code and it should fix the issue.

This is how our view naturally generates tables.

#1259563

Thanks, Shane.

I had tried putting the tags inside the view, but not at the point you suggested. This works fine.

Unfortunately, because I have to use different Views for displaying the table header and the table contents, there were several tricky knock-on effects to this - which is why I went silent for while.

But you solved the core problem - thanks

Alex