Update to Views – 3.2.2.1 To 3.3.4 – Broke Some Views…
Started by: shawnW-3
in: Toolset Professional Support
2
22
4 years, 9 months ago
Luo Yang
Creating accordion with dynamic content using toolset view
Started by: Jeffrey
in: Toolset Professional Support
2
4
4 years, 9 months ago
Waqar
Block Editor is almost not usable
Started by: arvidB
in: Toolset Professional Support
2
2
4 years, 9 months ago
Waqar
Need some help to display relations
Started by: riinA
in: Toolset Professional Support
2
7
4 years, 9 months ago
riinA
Conflict between Tools and Read more plugin
Started by: Serhii
in: Toolset Professional Support
2
5
4 years, 9 months ago
Serhii
Poner un icono en lugar de texto en un boton de un filtro
Started by: Rafael Corts
in: Toolset Professional Support
2
3
4 years, 9 months ago
Rafael Corts
Search – do not show items before using filters
Started by: dzemalN
in: Toolset Professional Support
2
17
4 years, 9 months ago
dzemalN
Approve and Reject Radio button in Toolset post form
Started by: salimA
in: Toolset Professional Support
2
20
4 years, 9 months ago
Minesh
Dynamic value of bookmark form submit button based on bookmark status
Started by: rithvikU
in: Toolset Professional Support
2
9
4 years, 9 months ago
rithvikU
Pagination not working in archive
Started by: Tomer Helzer
in: Toolset Professional Support
2
11
4 years, 9 months ago
Tomer Helzer
Alternating feed/view layout
Started by: alexD-18
in: Toolset Professional Support
2
3
4 years, 10 months ago
alexD-18
horizontal Checkboxes
Started by: salimA
in: Toolset Professional Support
2
5
4 years, 10 months ago
salimA
When my View loads in browser it is adding in a table column
Started by: mikeV-2
in: Toolset Professional Support
2
6
4 years, 10 months ago
mikeV-2
Nested views with block editor
Started by: franzG-4
in: Toolset Professional Support
2
7
4 years, 10 months ago
franzG-4
View: custom field filter doesn’t keep post relationship filter when filtering
Started by: Zayne
in: Toolset Professional Support
Quick solution available
Problem:
The user is filtering a view using a relationship field and a URL param. After filtering using AJAX, the view loses the filter because the URL parameter is not preserved.
Solution:
To fix this, we need to add a hidden field that will keep the value of the URL param. This needs custom code such as:
add_filter( 'wpv_filter_end_filter_form', 'prefix_add_hidden_field_edition_id', 99, 3 );
function prefix_add_hidden_field_edition_id( $out, $view_settings, $view_id ) {
$views = array( 9286 );
if ( in_array( $view_id, $views) ) {
$edition_id = isset($_GET['edition_id']) ? $_GET['edition_id'] : '';
$out = '<input type="hidden" id="edition_id" name="edition_id" value="' . $edition_id . '" class="js-wpv-filter-trigger form-control" />' . $out;
}
return $out;
}
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_end_filter_form
3
9
4 years, 10 months ago
Zayne