alexd-6
Support threads created in the last 30 days: 0
Favorite Forum Topics
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
show repeating fields in view from parent cpt if exist
Started by: alexd-6
in: Toolset Professional Support
Problem: The issue here is that he user wanted to display fields from the parent post if that child post has a parent. To do this just use the following shortcode. [wpv-conditional if="( '[wpv-post-datei name='_wpcf_belongs_projekte_id']' ne '' )"] <a href="[types field='datei' link='true' output='raw'][/types]" titel="[types field='datei' link='true' output='raw'][/types]"><i class="fas fa-download"></i> [types field='download-titel'][/types] [types field='art'][/types] Größe: [types field='size'][/types]</a> [/wpv-conditional] [wpv-conditional if="( '[wpv-post-datei name='_wpcf_belongs_projekte_id'']' eq '' )"] <a href="[types field='datei' link='true' output='raw'][/types]" titel="[types field='datei' link='true' output='raw'][/types]"><i class="fas fa-download"></i> [types field='download-titel'][/types] [types field='art'][/types] Größe: [types field='size'][/types]</a> [/wpv-conditional] Where you will replace _wpcf_belongs_projekte_id with _wpcf_belongs_{yourcptslug}_id |
2 | 11 | 6 years, 9 months ago | ||
Map marker pop-up open on page load
Started by: alexd-6
in: Toolset Professioneller Support
Problem: Solution: ( function( $ ) { $( document ).bind( 'js_event_wpv_addon_maps_init_map_completed', function(){ var mapId = Object.keys(WPViews.view_addon_maps.maps)[0]; var map = WPViews.view_addon_maps.maps[mapId]; var mapsMarkers = WPViews.view_addon_maps.markers[Object.keys(WPViews.view_addon_maps.markers)[0]]; var markerId = Object.keys(mapsMarkers)[0]; var marker = mapsMarkers[Object.keys(mapsMarkers)[0]]; WPViews.view_addon_maps.infowindows[ mapId ].setContent( $('div.js-wpv-addon-maps-marker-'+markerId).html() ); WPViews.view_addon_maps.infowindows[mapId].open(map, marker); }); })( jQuery ); |
2 | 7 | 6 years, 11 months ago |