ChrisRAoW / mautic-rss-to-email-bundle

Mautic plugin to send emails from RSS
103 stars 23 forks source link

Error: URL () empty or not valid #73

Closed ivfarias closed 6 months ago

ivfarias commented 1 year ago

Hey, I'm having a bit of a hard time getting the plugin to work.

I tried the following approaches:

  1. Used the "Code mode" and added the feed code inside a data-slot

`

{feed url="https://www.kyte.com.br/blog/rss.xml"} {feeditems}

{feeditem:title}

{feeditem:date format="d-m-Y H:i"}

{feeditem:description}

{/feeditems} {/feed}

`

Is this case nothing is returned.

  1. Added a 'raw' block to an email template

` {feed url="https://www.kyte.com.br/blog/rss.xml"} {feeditems}

{feeditem:title}

  <p>
    <small>{feeditem:date format="d-m-Y H:i"}</small>
  </p>
  <p>{feeditem:description}
  </p>
  <p>
    <img src="{feeditem:image}"/>
  </p>
  {/feeditems}
  {/feed}
</mj-raw>`

In this case I get Error: URL () empty or not valid (which I believe is because grapejs replaces quotes with "

Any idea on how to fix it?

ChrisRAoW commented 1 year ago

WIll dive into it. will let you know.

ivfarias commented 1 year ago

I figured it out, @ChrisRAoW. The script won't work unless it is nested inside a <div data-slot="text"></div> tag. I'll send a PR adding more installation and use instructions to the readme file.

ChrisRAoW commented 1 year ago

Nice! Thanks you!