• Resolved okayaelectric

    (@okayaelectric)


    Hello-

    I have just started testing the plugin (wow — very nice!) but have a question about the Twig syntax to show a 365 view on a web page.

    This is my code:

    [msdyncrm_twig]
    {% view entity=”product” name=”Character OLED on Website” count=”10″ cache=”PT30M” %}{% endview %}
    [/msdyncrm_twig]

    When I publish the page and load it, I receive an error: Unexpected error. Please try again.

    Do I need to build out a template to display the results?

    Thank you.
    Joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Hi Joe,

    the quotes you’re using seems to be “smart quotes”, e.g. ” as opposed to the ” quote. That usually happens when code is copied and pasted from something like Word or Outlook. Can you please verify that your code is using straight quotes?

    Thanks
    George

    Plugin Author alexacrm

    (@alexacrm)

    Hi Joe,

    one other thing, in twig the values are actual properties, e.g. count is an integer. Try using count=10, i.e. without quotes.

    Cheers
    George

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twig syntax’ is closed to new replies.