Navigation überspringen

[Gelöst] Add Toolset map to Elementor page

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

I am trying to add a map, created with Toolset, that displays locations from a repeatable field group on a page designed with Elementor. However, when using the shortcodes, the map appears without markers.

Solution:

Create the View using Toolset's legacy mode and include the map and its markers within the View. Then, use the [wpv-view name="Name of the view"] shortcode in Elementor to display the map. Make sure to enable legacy views under "Toolset > Settings > General".

Relevant Documentation:

https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

This support ticket is created vor 1 year, 8 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 1 year, 8 months.

Assistiert von: Christopher Amirian.

Author
Artikel
#2751109

Tell us what you are trying to do?

I have created a map here: versteckter Link

I have a custom post type venues and each venue has a repeatable field group to allow multiple locations. I have created a view to access all locations for all venues and display them on a map. This is working correctly.

How can I add this map into a page designed with Elementor (versteckter Link)?

I have tried using the shortcodes but this just gives me a map with no markers so I must be missing something:

[wpv-map-render map_id='map-3']
[wpv-map-marker map_id='map-3' marker_id='marker-4']

Is there any documentation that you are following?

https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/

Is there a similar example that we can see?

What is the link to your site?

versteckter Link

#2751341

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi,

The way you used the Map is complicated and it is an integrated part of a view. You can not use the Map standalone.

I suggest that you create the View separately using the legacy mode:

- Go to "Toolset > Settings > General".
- Find the "Editing experience" section.
- Check the "Show both the legacy and Blocks interface and let me choose which to use for each item I build" checkbox.
- Reload the browser page.
- Go to the newly added "Toolset > Views" menu.
- There you will be able to edit the views.

For more information:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

You can add the filtering and all the map items you want there.

Then, you can use the [wpv-view name="Name of the view"] shortcode in Elementor to show the view.

Replace "Name of the view" with the name you chose for the view you have created.

Thank you.