Skip Navigation

[Resolved] Search & Pagination Reset not working when View is enclosed in table tags

This thread is resolved. Here is a description of the problem and solution.

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 5 years, 7 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 – 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)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by alexG-4 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1256969

Please see this video demonstrating my issue

hidden link

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

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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