Skip Navigation

[Resolved] Dynamic marker selection in templates

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by martinB-16 vor 3 Monate, 1 Woche.

Assigned support staff: Minesh.

Author
Artikel
#1664047

Hi,
I want to display different markers depending on the custom field. I adjusted the shortcut as follows:

[wpv-map-marker map_id='map-3' marker_id='marker-15' marker_icon='//r-br.de/wp-content/plugins/toolset-maps/resources/images/markers/[types field="icon" output="raw"][/types].png' marker_field='wpcf-adresse'][/wpv-map-marker]

This also works.

How do I do that when I use templates? There I have no way to adjust the code.

#1664275

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean you are using Toolset Blocks using which you displaying the map and you want to display different map marker based on the types field that holds the marker image?

Because, the marker shortcode you used that defines that currently you are using classic views to display the map.

[wpv-map-marker map_id='map-3' marker_id='marker-15' marker_icon='//r-br.de/wp-content/plugins/toolset-maps/resources/images/markers/[types field="icon" output="raw"][/types].png' marker_field='wpcf-adresse'][/wpv-map-marker]
#1664573

Hi,
No, that's not what I mean.
I don't want to dynamically display the location of the marker, but the type of marker.
If I do this classically, I can adjust the shortcode as I have already indicated.
However, if I do this in a block, I cannot customize the code.

#1664751

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

With Map blocks that is a limitation that you can not pass the dynamic marker type. In that case, you need to use the classic way to display the map.

However - I seems to me a feasible request and I will pass on this request to concern person and they will pass the information in front of our Devs for review.

#1665721

My issue is resolved now. Thank you!

Das Forum „Toolset professionelle Unterstützung“ ist für neue Themen und Antworten geschlossen.