Hi
I have two nested views working ok when posts exist. View1 loops on parents and shows a table header. View2 loops on children (related to parents with a one-to-many relationship) and adds the table rows, showing children of parents using the filter "Select posts in a parent-children relationship that are a related to the current post in the loop".
...
I would like to include a "Please wait" spinner, I tried in both views, but it never displays, is there any special condition to add for the spinner to show ?
Thanks
Regards
Nicola
Hi Nicola,
Thank you for contacting us and I'd be happy to assist.
A spinner is shown for the duration when the results are being updated through AJAX. This AJAX request can be for pagination, sorting, or for front-end search filters.
Are your views set to use any of those operations through AJAX? If it is already set up and the spinner is still not showing, you're welcome to share temporary admin login details, along with a page where these views can be seen.
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
regards,
Waqar
Hi Nicola,
Thank you for sharing the admin access and sorry about the delay in getting back on this.
I've noticed that the page's output is being generated by multiple views, nested inside each other, that also have a number of different filters.
Due to the complexity involved, I'll need to perform some tests on your website's clone on my own server to troubleshoot the spinner and the pagination's behavior.
Do I have your permission to download a duplicator package from your website?
(the "Duplicator" plugin is already installed)
regards,
Waqar
Hi Waqar,
I understand your point, but for this isn't a major issue I am not really keen to allow full backups of my site. The site is still under construction so you can access it anytime without hurting users, but if you cannot find a solution no problem, I will leave the view without spinner and pagination.
I am sure you understand.
Kind regards
Nicola
Hi Nicola,
Thanks for writing back and I apologize for the delay in getting back on this.
I understand if you're fine without using the spinner and pagination for the view at this time. You're welcome to get in touch again, whenever you'd like us to investigate this further.
Notes: After some testing on my own website, I can confirm that the spinner added through the "wpv-filter-spinner" shortcode in the "Search and Pagination" section only shows, when the view is updated through AJAX as a result of the custom search. It doesn't show when the view is updated through AJAX pagination.
For the AJAX pagination, spinner controls under the "Pagination and Sliders Settings" section are applied.
( screenshot: hidden link )
regards,
Waqar
My issue is resolved now. Thank you!