Adriano
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Change what a map shows when there are no search results
Commencé par : daveG-7
in: Toolset Professional Support
Problem: The client wanted to change the zoom accordingly the results of the View. If it doesn't return any results, then the zoom should be different. Solution: 1. Call the map render as last thing in the layout [wpv-layout-start] [wpv-items-found] <!-- wpv-loop-start --> <ul class="wpv-loop js-wpv-loop"> <wpv-loop> <li>[wpv-post-body view_template="Loop item in posts"]</li> [wpv-map-marker map_id='map-4' marker_id='marker-[wpv-post-id]' marker_field='wpcf-address-test'][/wpv-map-marker] </wpv-loop> </ul> <!-- wpv-loop-end --> [/wpv-items-found] [wpv-no-items-found] [wpv-map-marker map_id='map-4' marker_id='marker-[wpv-post-id]' address='Rua Pedro Trogo - Santo Antônio, Juiz de Fora - State of Minas Gerais, Brazil'][/wpv-map-marker] [/wpv-no-items-found] [wpv-map-render map_id='map-4' marker_icon='http://localhost:8888/teste/wp-content/plugins/views-addon-maps/resources/images/markers/Buildings.png'] [wpv-layout-end] Now use a Views JavaScript front-end event to change the zoom dynamically: jQuery( document ).on( 'js_event_wpv_addon_maps_init_map_started', function( event, data ) { if (WPViews.view_addon_maps.maps_data[0].markers[0].marker == 'marker-123'){ data.map_options.single_zoom = 1; } }); First you will need to define an ID for your marker in the wpv-map-marker shortcode inside of no items found. Then use the same ID in the code above and your zoom can be adjusted. |
|
2 | 6 | Il y a 7 années et 6 mois | |
How to send auto notifications when deleting a post via CRED form
1
2
3
Commencé par : jamesH-3 in: Toolset Professional Support |
|
3 | 33 | Il y a 8 années et 4 mois | |
Limit upload file size for repeating image custom field
Commencé par : Rita in: Toolset Professional Support |
|
3 | 15 | Il y a 8 années et 6 mois | |
Filter for properties where not parent has been assigned
Commencé par : John in: Toolset Professional Support |
|
3 | 6 | Il y a 8 années et 6 mois | |
"Row background extends to full width" not working in Beta 4
Commencé par : triggeru571 in: Toolset Professional Support |
|
2 | 10 | Il y a 8 années et 9 mois | |
View with date filter
Commencé par : francoiseR in: Toolset Professional Support |
|
2 | 4 | Il y a 8 années et 11 mois | |
2 CPT have different CF
Commencé par : Adnan in: Toolset Professional Support |
|
2 | 4 | Il y a 9 années et 2 mois | |
How can I group views by custom field
Commencé par : michaelR-12 in: Types Community Support |
|
2 | 8 | Il y a 9 années et 3 mois | |
Display the title links to parents of different CPTs
Commencé par : Gavin in: Toolset Professional Support |
|
2 | 7 | Il y a 9 années et 3 mois | |
Problems to show parent fields into posts with a view
1
2
Commencé par : Miguel Angel in: Toolset Professional Support |
|
2 | 17 | Il y a 9 années et 3 mois | |
Query filter – today to end of next week
1
2
Commencé par : Vladimir in: Toolset Professional Support |
|
2 | 16 | Il y a 9 années et 3 mois | |
Need to find Sum total of fields in child loop
Commencé par : Brent in: Toolset Professional Support |
|
2 | 6 | Il y a 9 années et 4 mois | |
Populate a Cred field with data linked to the type
Commencé par : Pat in: Toolset Professional Support |
|
2 | 4 | Il y a 9 années et 5 mois | |
Exclude some taxonomy terms from filter search….
Commencé par : Jean-Philippe in: Toolset Professional Support |
|
3 | 4 | Il y a 9 années et 6 mois | |
repeat custom field image in a slider
Commencé par : petruccio in: Toolset Professional Support |
|
2 | 5 | Il y a 10 années |
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
How to group posts by category
Commencé par : Adriano in: Toolset Professional Support |
1 | 1 | Il y a 8 années et 10 mois |