Skip Navigation

[Gelöst] Dynamic marker selection in templates

This support ticket is created vor 3 Jahre, 3 Monate. There's a good chance that you are reading advice that it now obsolete.

Dies ist das technische Support-Forum für Toolset – eine Suite von Plugins zur Entwicklung von WordPress-Websites ohne PHP-Pogrammierung.

Jeder kann in diesem Forum lesen, aber nur Toolset-Kunden können darin Beiträge veröffentlichen. Der Toolset-Support arbeitet 6 Tage pro Woche, 19 Stunden pro Tag.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by martinB-16 vor 3 Jahre, 3 Monate.

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 Professioneller Support“ ist für neue Themen und Antworten geschlossen.