Skip Navigation

[Resolved] No items reset option

This support ticket is created 5 years, 2 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by stewartE 5 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1329297
Capture.PNG

I have a view which is filterable by parametric search when there are no items the No Items Found message is displayed but there is no way to reset the list.

Note - i have added the reset button which allows the list to reset after being filtered if there are items found.

#1329317

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-09-02 at 11.14.40.png

I'm not sure I follow.

The filters (including submit and reset buttons) are inserted separately from the results.

If you apply filters and the results update to show no results found, the filters are still visible (example in screenshot), and you can use the reset button.

Have you added a reset button somewhere other than the Search and Pagination section?

#1330185

Hi Nigel

I think the results and filters are separate

Here is the code in my Search and Pagination section

<div class="allSites-filter filter-wrap hide-mob">[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="row">
<div class="col-sm-12 form-group">
<div class="form-group FilterofSet"> Filter by: </div>
[wpv-control taxonomy="region-category" type="select" default_label="Region" url_param="wpv-region-category"] -
[wpv-control taxonomy="technology-category" type="select" default_label="Technology" url_param="wpv-technology-category"] -
[wpv-control taxonomy="market-category" type="select" default_label="Market" url_param="wpv-market-category"]
<button type="submit" class="wpv-reset-trigger js-wpv-reset-trigger btn ResetofSet">Reset Filter<i class="fa fa-refresh" aria-hidden="true" style="padding-left: 12px;"></button>
[wpv-filter-spinner spinner="hidden link"][/wpv-filter-spinner] </div>
[/wpv-filter-controls]
[wpv-filter-end] </div>
</div>

Here is my code in the loop editor

[wpv-layout-start]
[wpv-items-found]
<div class="hide-mob location-map">
[wpv-map-render map_id="map-1" map_height="375" spiderfy="on"][/wpv-map-render]
</div>
<!-- wpv-loop-start -->
[wpv-filter-meta-html]
<table width="100%">
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<!--Map Marker-->
[wpv-map-marker map_id='map-1' marker_id='marker-[wpv-post-id]' marker_title='Hover' marker_field='wpcf-address-field']
<p style="font-size:16px;">[wpv-post-link] <i class="fa fa-angle-right" style="color:#2a7ac4;" aria-hidden="true"></p>
<i class="fa fa-phone-square" aria-hidden="true"> [types field='phone'][/types]<br />
<i class="fa fa-envelope" aria-hidden="true"> [types field='email'][/types]
[/wpv-map-marker]
<!--End Map Marker-->
<tr>
[wpv-post-body view_template="loop-item-in-sites-with-map"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-pagination][wpv-pager-nav-links ul_class="pagination"][/wpv-pagination]
[wpv-layout-end]

Thanks!

#1330277

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

It looks like you made a DIY reset button.

If you insert a reset button into the Search and Pagination section it will insert a wpv-filter-reset shortcode to generate the button.

Can you add that and try again and see if the Toolset reset button works?

#1338957

My issue is resolved now. Thank you!