{{ post.title }} causes error in leaflet map

Support MB Views {{ post.title }} causes error in leaflet map

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36788
    info@ceescoenen.nl[email protected]
    Participant

    Hi,

    I have an page with Leaflet Map on top. It works until I fetch a linked post in a mb view and display the title. Then an 2nd leaflet js is loaded.

    1st from Leaflet Map : https://unpkg.com/[email protected]/dist/leaflet.js
    2nd from MB : /[email protected]/dist/leaflet.js

    Why is the MB View loading an Leaflet JS when I only will show the title?

    When I remove the title and replace with some dummy text then it works normally.

    Is there work around for this?

    <div class="grid--1">
    {% set relationship = attribute( relationships, 'locatie-to-route' ) %}
    {% for post in relationship.from %}
    
    <div>
      {{ post.title }}
    </div>
    	
    {% endfor %}
    	
    </div>
    
    #36794
    Long NguyenLong Nguyen
    Moderator

    Hi Cees,

    First, please deactivate all plugins except Meta Box, MB extensions and re-check the issue. If it still persists, please share all the code that create the custom fields, relationship on your site, and some screenshots of the steps to reproduce the issue.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.