Showing Twig syntax instead of data from Dataverse
-
I’ve been using the Dynamics 365 plugin for a long time and am now starting to use the Dataverse plugin.
Have installed it to my site and activated it. This is my code on the page:
{% fetchxml collection=”exhibits” cache=”PT30M” %}
<fetch mapping=”logical” output-format=”xml-platform” mapping=”logical” distinct=”true”>
<entity name=”bsdepot_exhibit”>
<attribute name=”bsdepot_exhibitid”/>
<attribute name=”bsdepot_exhibitname”/>
<attribute name=”bsdepot_exhibittext”/>
<order descending=”false” attribute=”bsdepot_exhibitname”/>
<filter type=”and”>
<condition attribute=”statecode” value=”0″ operator=”eq”/>
</filter>
</entity>
</fetch>
{% endfetchxml %}{% if exhibits.results.entities|length > 0 %}
-
{% for exhibit in exhibits.results.entities %}
- {{exhibit[“bsdepot_exhibitname”]}} — {{exhibit[“bsdepot_exhibittext”]}}
{% endfor %}
{% else %}
<p>No exhibits found.</p>
{% endif %}`It doesn’t load anything from Dataverse, just shows the Twig scripting when viewing the page.
Am I missing something in my Twig syntax or something with the plugin? I also noticed there is no entity binding drop-down in the WordPress admin creating a page.
Thank you.
JoeThe page I need help with: [log in to see the link]
- The topic ‘Showing Twig syntax instead of data from Dataverse’ is closed to new replies.