Giter VIP home page Giter VIP logo

mautic-rss-to-email-bundle's Introduction

Mautic RSS to E-mail

Description

The Mautic RssToEmailBundle is a Mautic plugin that allows you to generate e-mails from a RSS-feed.

Purpose

Send out an e-mail with for example to latest posts of your blog.

Compatibility

This plugin has been tested with Mautic versions 2.x, 3.x and 4.x.

Features

  • Set the number of posts you want to display
  • Create a custom template for the items in the feed
  • Use images from the feed
  • Format dates
  • Reverse view

Installation

  1. Download the plugin from github
  2. Move / Upload folder to the plugins directory. Name the folder MauticRssToEmailBundle
  3. In the Mautic GUI, go to the gear and then to Plugins.
  4. Click on the "Install/Upgrade Plugins" button
  5. You should now see the "Rss To Email" in your list of plugins.

Usage

Use the "code mode" slot of the froala/grapejs e-mail editor. In the content of the slot set to following content:

{feed url="<<FEEDURL>>"}
    {feeditems}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}
{/feed}

This should give a basic setup to start with.

The following tags can be used in the {feed} block:

  • {feedinfo:title}
    Returns: title of the feed

  • {feedinfo:url} Returns: url of the feed

  • {feedinfo:description} Returns: description of the feed

The following tags can be used in the {feeditems} block:

Optional param:

  • Batch mode

    By default batch-mode will be enabled. This means that the feed-tags will only be replaced once per batch. When you disable batch-mode, the feed will be parsed for every single e-mail. So if you have a list of 1000 addresses, the feed will be requested 1000 times. Because of the high number of requests in a short timeframe it could cause the server where the feed is on to go down. So handle with care!

    {feed batch="0"} - Will DISABLE batch-mode on the feed.

  • Count
    {feeditems count="3"} - Returns only the first N items from the feed

  • Offset
    {feeditems count="3" offset="2"} - Skips the first N items from the feed

  • Reverse
    {feeditems reverse="1"} - Returns resuls in reversed view

  • Shuffle
    {feeditems count="3" shuffle="1"} - Returns results in shuffled (random) view, can be used in combination with the count parameter

Merge tags:

  • {feeditem:title}
    Returns: title of the post

  • {feeditem:link}
    Returns: link to the post

  • {feeditem:content}
    Returns: summarized content (desciption), when description is not available it will return the full content

  • {feeditem:content_full}
    Returns: full content of the post

  • {feeditem:content_text}
    Returns: summarized content (desciption), when description is not available it will return the full content. Tags are stripped.

  • {feeditem:content_full_text}
    Returns: full content of the post stripped of tags

  • {feeditem:description}
    Returns: summarized content (desciption) of the post

  • {feeditem:date}
    Optional param: format {feeditem:date format="d-m-Y H:i"}
    Returns: summarized content (desciption) of the post

  • {feeditem:author}
    Returns: author name of the post

  • {feeditem:categories}
    Returns: comma seperated list of the categories

  • {feeditem:image}
    Returns: url of the image. Will check the enclosere and media tags of the xml.

  • {feeditem:custom:KEY}
    Returns: value of custom field in RSS feed.

    To use this functionality you have to:

    1. Add this to the xmlns definitions in your RSS-feed: xmlns:mautic="https://www.mautic.org/rss/mautic/"

      For example:

      <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
       xmlns:content="http://purl.org/rss/1.0/modules/content/"
       xmlns:wfw="http://wellformedweb.org/CommentAPI/"
       xmlns:dc="http://purl.org/dc/elements/1.1/"
       xmlns:atom="http://www.w3.org/2005/Atom"
       xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
       xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
       xmlns:mautic="https://www.mautic.org/rss/mautic/">
      
      <channel>
      ...
      
    2. Add the custom field to your RSS-feed with the following syntax:
      <mautic:location>New York</mautic:location>

    3. Inside your mail template use the following tag:
      {feeditem:custom:location}

Icon

Icons made by Freepik from www.flaticon.com

mautic-rss-to-email-bundle's People

Contributors

amaurigabriel avatar byteflood avatar chrisraow avatar filchakov avatar jbransen avatar kuzmany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mautic-rss-to-email-bundle's Issues

Can someone offer me the development of a litte extension for this bundle?

Hello,

sorry for asking this at github: But can someone of the contributors offer me some small extensions for this bundle?

I would like to have an option to output some random feeditems. For example I have a feed with 20 items. I would like to define that I output just 5 from these 20 items random.

Another question: Is there a way to work with other data than rss feeds, for example another xml structure or event a json response from an api?

Thanks for some feedback!

Best regards,

Timo

Installing Plugin on cPanel instance without SSH

Ive uploaded the composer.json file as well as unzipped the plugin file in the root of the installation, what do i need to add to the composer.json file in order to be able to install the plugin within mautic with out having to run "composer require raow/mautic-rss-to-email-bundle"

{feeditem:link}

Hi again and thanks for the last reply. I was wondering if you can point at the code where the {feeditem:link} tag for instance is interpreted? Do you have any doc to help me to figure out how this works?
Thanks in advance!

Ju

Send a daily or weekly email using feed items

So I'm probably missing something here, but having got the plugin working fine in a test email, what sort of campaign do I setup so that mautic keeps sending a daily or weekly email from the rss feed?

Feature: Only send out RSS email if there is a new post

Many other email platforms have RSS emails but only send out when there is a new post available. Since the standard way to set up these emails to be ongoing is through a campaign, do you think it would make sense to extend Mautic to add a decision to the campaign options that would check if a new post was added to the RSS feed? Or add it as a plugin feature option to check for new posts?

Output of feed-items in text-email/text-version

Hello,

should the output of the feeditems also work in the txt-version of the email?

I tried it with the following simple structure and get no feed output in the txt-mail:

{feed url="myurl"}
{feeditems count="5"}
{feeditem:title}

{/feeditems}
{/feed}

Thanks for some help!

Best regards,

Timo

<image> tag

I have add an image to my RSS feed (WP) manually, and it shows up like this:
<image><url>www.image-url.com</url></image>
(The image isn't part of the content)

I tried adding the image to my email template using{feeditem:image}but it doesn't load.

Do I have to modify anything in my feed to make this work?

Thanks!

Feature request: Reverse order

I suggest that the tag{feeditems} gets a flag reverse to control the sort order of the outputted items. If present, the items are outputted in reverse order.

Usually, RSS feeds lists items in reverse chronological order. But in a newsletter it would be nice to present them in chronological order. With this flag it would be possible.

Custom fields in feeds

Hi!

I am creating a custom WP post feed that will contain custom fields.

Can these fields be accessed by using something like {feeditem:custom_field} or do I need to modify the plugin to read these fields?

Thanks!

How to setup Rss Email ongoing?

Hi, sorry if I use this channel but I think can be interesting for other users like me... new to Mautic.
I've setup the plugin and seem to work but... How can I set a "campaign" that send my RSS feed updates to a "segment" of contacts?

Can you update the docs and write how to use the plugin once installed? Need to create a "campaign"? a "segment"? an "segment email"? or what?

Thanks for your time. Really appreciated.

Compatibility with V4.1.1

I recently updated to v4.1.1 and the plugin shows up in the plugin list, however it isn't converting the rss tags in my template to the proper text.

I added the tags into the template using "Edit Code" button, as v4.x doesn't seem to have the "code mode" slot like v3.

Am I doing something wrong?

Thanks!!

Feature Request: Support for custom tags/namespaces

We use custom tags. To support a valid RSS-Feed, we have a custom prefix, which has its own namespace in the rss tag.

RSS-Feed
<rss version="2.0" xmlns:prefix="namespaceURI">

We also changed the default case in the ItemTag.php like this.

default:
  $itemTag = null;

  if(strpos($this->tag, ':') !== false){
    $parts = explode(':', $this->tag);
    $prefix = $parts[0];
    $localName = $parts[1];
    $namespaceURI = 'www.ournamespace.com';
    //TODO lookup namespaceURI from $prefix
    $itemTag = $feedItem->get_item_tags($namespaceURI, $localName);
  }else{
    $itemTag = $feedItem->get_item_tags('', $this->tag);
  }

  if(!empty($itemTag)) {
    $value = $itemTag[0]['data'];
  }
break;

For looking up a namespace I suppose one needs to use something like that https://www.php.net/manual/en/xmlreader.lookupnamespace.php

Maybe you can implement a working solution?

Regards

Marcus

Content Repeats if Items in feed are less than feedItems count

I am trying to send out a daily digest of articles for the last 24 hours from my WordPress news site .

I'm generating RSS feeds for each segment using a node script that grabs the posts for the last 24 hours and then generates a RSS feed.

I've noticed that if the number of posts in the feed is less than the count parm in feeditems then a article is randomly repeated. To me the correct behavior would be just to display each item in the feed once.

Where in the plugin is the logic that controls that? I've been reading through the code, but being completely new to mautic, im still not entirely sure what is happening in different parts of the code.

Fetching only new posts

Hello Chris,

This is not quite an 'issue' but is there a way for the plugin to fetch only the 'new' posts? Basically I'm trying to build a weekly newsletter so it fetches the posts published since the last newsletter (similar to what MailChimp does). Further, this is more of a Mautic question, is there a way for us to automate to go out weekly or we just have to create a load of campaigns/emails with published date set to the dates we want those to go out?

Many thanks in advance.

Question about performance/number of feed requests

Hello,

I have a short question about the performance when using the rss feed bundle:

When I send the email to multiple contacts, is the feed requested for every single contact or is there any kind of caching for this data to handle the request just one time?

Thanks for an short answer!

Best regards,

Timo

Feedinfo:url

Hi,
I'm using your cool plugin through Mautic since a few days to blast my newsletter around that is generated with ttrss. It starts to work but I'm struggling with the {feedinfo:url}. Indeed, when I click on the title of one of the articles contained by the rss flow I'd like of course that it points to the source of the article but at the moment it points at the url of the rss flow instead... Any idea of why this happens and how to fix it?
Many thanks in advance!
Ju

Feature Request: Tags for each individual <item>

Currently it seems we can only style the RSS items one way, and there is no way to display the items in a table grid format.

It would be really cool if we could add each item to the template individually. This would make the templates much more customizable.

E.g. We would be able to style each post differently, and we would be able to put the posts in a

.

I've seen this in a WP plugin, where each item tag has a number (-1, -2, -3 etc.) referencing the post.

For example,

{feed url="<<FEEDURL>>"} {feeditems count="3"} <div> <h3>{feeditem-1:title}</h3> <p><small>{feeditem-1:date format="d-m-Y H:i"}</small></p> <p>{feeditem-1:description}</p> <p><img src="{feeditem-1:image}"></p> </div> <div> <h3>{feeditem-2:title}</h3> <p>{feeditem-2:date format="d-m-Y H:i"}</p> <p><strong>{feeditem-2:description}</strong></p> <p><img src="{feeditem-2:image}"></p> </div> <div> <h3>{feeditem-3:title}</h3> <p><small>{feeditem-3:date format="d-m-Y H:i"}</small></p> <p>{feeditem-3:description}</p> <p><img src="{feeditem-3:image}"></p> </div> {/feeditems} {/feed}

Low res images in feed

Hi,

I've noticed that {feeditem:image} pulls in low res images from my feed (https://androidworld.be/feed). Here's the code that loads the image:

<img src="https://cdn3.androidworld.nl/media/thumbnails/47/94/4794d7ce6ea2b61f46c9f347f3b831f0.jpg" alt="content image" data-pagespeed-url-hash="3429114804" onload="pagespeed.CriticalImages.checkImageForCriticality(this);"/>

With the same feed, in Feedly the high res images are loaded. How can I load the high res images in my Mautic/RSS email?

Thanks.

Mautic stops loading after composer install

Hi, I managed to install this and get it to work fine on a Bitnami Mautic instance on AWS. I've been trying to do the same on an Ubuntu Server instance but every time I install this, Mautic stops loading. I tried installing Mautic first and then this and it didn't work. So I thought I'll install this on the Mautic folder before I install/configure Mautic. Did that and the Mautic installer isn't coming up any more... Any thoughts or guidelines to figure out what's going on? As it's a brand new server with no sensitive data, I'm more than happy to give you the access too. Many thanks in advance.

Feed Error

Hello, I have your plugin installed in Mautic and when I create and publish an email I get this error.

Error: cURL error 22: The requested URL returned error: 400 Bad Request

the feed I am using is below

https://www.sheltertheworld.org/shelter-the-world-shop/feed/

I have the following code in my email template (code mode)

<div data-section-wrapper="1"> {feed url="https://www.sheltertheworld.org/shelter-the-world-shop/feed/"} {feeditems count="3"} <h3>{feeditem:title}</h3> <p><small>{feeditem:date format="d-m-Y H:i"}</small></p> <p>{feeditem:description}</p> <p><img src="{feeditem:image}" /></p> {/feeditems} {/feed} </div>

I noticed in a previous message (#15 Feed not working) you said "look like the plugin isn't active yet. Did you activated it after installing" What does that mean? I have installed it, created an email, and published the email. Is there another step that I missed regarding activation of the plugin??

Thanks,
Rich

Feed not working

Adding code in Code Block

{feed url="https://www.theverge.com/rss/index.xml"}
    {feeditems count="3"}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
    {/feeditems}
{/feed}

Getting Output

{feed url="https://www.theverge.com/rss/index.xml"} {feeditems count="3"}
{feeditem:title}
{feeditem:date format="d-m-Y H:i"}

{feeditem:description}

{/feeditems} {/feed}

Please help {feed url="https://www.theverge.com/rss/index.xml"} {feeditems count="3"}
{feeditem:title}
{feeditem:date format="d-m-Y H:i"}

{feeditem:description}

{/feeditems} {/feed}

Mautic Version : 2.14.2 (Still not working)

content seems truncated

My feed ( https://www.agilicus.com/feed/ ) has items as below.

I would like to send the entire content into the email. I've tried {feeditem:content}, but it sends the same info as {feeditem:description} which is the short overview.

I tried {feeditem:content:encoded} but that gives an error.

Can you suggest how I would achieve this goal? The parser seems fairly simple, if i read it correctly it should select each field by name and make them available.

<item>
<title>Add multi-factor authentication to old applications</title>
<link>https://www.agilicus.com/add-multi-factor-old-applications/</link>
<comments>https://www.agilicus.com/add-multi-factor-old-applications/#respond</comments>

<dc:creator><![CDATA[Don Bowman]]></dc:creator>
<pubDate>Sun, 08 Aug 2021 15:58:59 +0000</pubDate>
<category><![CDATA[Defense-In-Depth]]></category>
<category><![CDATA[web app security]]></category>
<guid isPermaLink="false">https://www.agilicus.com/?p=781717</guid>

<description><![CDATA[<a href="https://www.agilicus.com/add-multi-factor-old-applications/" title="Add multi-factor authentication to old applications" rel="nofollow"><img width="300" height="169" src="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png" class="webfeedsFeaturedVisual wp-post-image wp-stateless-item" alt="multi-factor" loading="lazy" style="display: block; margin-bottom: 5px; clear:both;max-width: 100%;" link_thumbnail="1" srcset="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png 300w, https://www.agilicus.com/www/392d6edb-multi-factor-768x432.png 768w, https://www.agilicus.com/www/392d6edb-multi-factor.png 795w" sizes="(max-width: 300px) 100vw, 300px" data-image-size="medium" data-stateless-media-bucket="agilicus" data-stateless-media-name="www/392d6edb-multi-factor.png" /></a>Your cyber insurance is up for review. IGet all applications authenticated with multi-factor, simply, quickly, compliantly.]]></description>
<content:encoded><![CDATA[<a href="https://www.agilicus.com/add-multi-factor-old-applications/" title="Add multi-factor authentication to old applications" rel="nofollow"><img width="300" height="169" src="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png" class="webfeedsFeaturedVisual wp-post-image wp-stateless-item" alt="multi-factor" loading="lazy" style="display: block; margin-bottom: 5px; clear:both;max-width: 100%;" link_thumbnail="1" srcset="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png 300w, https://www.agilicus.com/www/392d6edb-multi-factor-768x432.png 768w, https://www.agilicus.com/www/392d6edb-multi-factor.png 795w" sizes="(max-width: 300px) 100vw, 300px" data-image-size="medium" data-stateless-media-bucket="agilicus" data-stateless-media-name="www/392d6edb-multi-factor.png" /></a>
<p>Your cyber insurance is up for review. If you can get all applications authenticated with multi-factor, you can afford it. But, you have only managed to get the new ones done, leaving the miscellaneous. Let&#8217;s talk about how an authenticating proxy can get the rest done, with no work, no fuss. Become compliant right quick.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube"><div class="wp-block-embed__wrapper">
<div class="nv-iframe-embed"><div class="container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded"><a href="https://youtu.be/ZycdjJHmjpk" class="lazy-load-youtube preview-lazyload preview-youtube" data-video-title="Adding Multi-Factor Authentication to the older, forgotten applications" title="Play video &quot;Adding Multi-Factor Authentication to the older, forgotten applications&quot;">https://youtu.be/ZycdjJHmjpk</a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href="https://youtu.be/ZycdjJHmjpk" title="Adding Multi-Factor Authentication to the older, forgotten applications">Adding Multi-Factor Authentication to the older, forgotten applications (https://youtu.be/ZycdjJHmjpk)</a></noscript></div></div>
</div></figure>
]]></content:encoded>

<wfw:commentRss>https://www.agilicus.com/add-multi-factor-old-applications/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>


</item>

Author tag not rendering

In my feed I have both the <dc:creator> and <author> tags filled in and they show up properly in the feed, however when I put {feeditem:author} in my template, it doesn't display the author name...
Am I doing something wrong?

I also tried the {feeditem:categories} tag, using <category>Category Name</category> in my feed, and that didn't work either.

Title, description etc. works properly.

Further question to RSS periodic mailing

Hello again:

Per your previous comments, the SEND MAIL campaign action should be set to TRANSACTIONAL if its a RSS periodic mailing.

Would that be the same whether is every 10 minutes, every 10 days, every 10 weeks?

Thanks,

Image and Categories tags not picking up value

Hello Chris,

I've been trying to build a customised newsletter for a client and tried all available tags to see what do they deliver when it parses my client's WordPress site. Most work well but I noticed that image and category data are not getting displayed correctly. Here's the link to the sample and here is the feed I'm using. Any thoughts?

Further, if we want to parse additional or custom tags, can we do that by changing php codes directly on the already installed plugin? I know it's not the best way to do it but theoretically would that work? If it would, what are the files we need to specifically look at?

Many thanks in advance.

Installation Failure not enough Memory

Hi, I am trying to install on a siteground shared account and the memory limit for the account is 768 MB apparently the composer uses 845mb. I am new Mautic, and would love to be able to use it but Rss to Email is a must for me, is there a different way to install your plugin?

Using version ^1.2 for raow/mautic-rss-to-email-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 845160448) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Rule.php on line 76

Cannot install in Mautic 2.15.2-dev

Hi there, I'm trying to install this plugin into Mautic 2.15.2-dev and it does not show in the plugins list, here are my steps without any success:

  • git clone the repository
  • rename the folder to MauticRssToEmailBundle inside /var/www/mautic/plugins folder
  • be sure that the owner is www-data
  • go to plugins sections and press the button to "install/upgrade" plugins

But the plugin doesn't show at all... any clues?

Automate RSS mailing

Hello there.

I have the the plugin working fine, but when attempting to do testing - say send the same exact rss mailing every ten minutes - I get the error that the email has already been sent after it goes out the first time.

Should RSS mailings be set to transactional?

Thanks,

Installation Failure

I am trying to install this on a bitnami mautic installation hosted on google cloud. after runnning

the git clone command, I get this error"

Could not scan for classes inside "app/AppKernel.php" which does not appear to be a file nor a folder

Would appreciate any pointers on this

[Feature Request] Conditional Tags

Would love to see a future release include conditional tags.
Something along the lines of {iffeed:tag_name == 'value'} <div> ...{feeditem...}</div> {/iffeed}.
Could be similar to Mailchimp's Conditional Merge Tags, just testing the $content returned from ItemsParser.php

I'm out of the country for the next few months, but I will happily write the PR when I'm back in June (if no one beats me to it)

Display of quotes/apostrophs in feed title

Hi Chris,

Got your plugin working on my Mautic instance. The only thing I still need to fix, is the proper display of quotes in the email article titles. See the screenshot: single and double quotes are not correctly shown.

Not sure if this is something that I need to fix on the email side, plugin side or maybe the feed itself (The feed I'm using is https://androidworld.be/feed)

Thanks for pointing me in the right direction.

image

Not show up in plugins

Hello!

I have uploaded the folder into plugins directory, but it do not showss up under plugins menu in mautic 3.3.2 :(
I have bought this plugin on mauticapps.com. Is that different from this?

Thanks,
Adrian

Cannot declare class MauticPlugin\GrapesJsBuilderBundle\GrapesJsBuilderBundle, because the name is already in use

When I install this plugin with composer require I get the above error during cache:clear.

I'm pretty sure it's caused by this line:

include(dirname(__FILE__) . '/vendor/autoload.php');

What's it's purpose? Mautic already uses the composer autoloader (at least in development mode). If this is some weird edge case, it should at least be include_once.

Not showing in Mautic v2.16.2

This plugin is not visible in Mautic v2.16.2
I have extracted the files in directory /plugins
and renamed the folder as MauticRssToEmailBundle
But it doesnt display in Mautic GUI / Plugins

package install breaks mautic

Hi Chris,

I was happy to see that you wrote this module. But when i tried to install it on the server it broke the mautic installation. I'm a bit of a noob so i could not undo the install of the email bundle and ended doing a bit of a reinstall.

This was the output:

root@bmx:/var/www/mautic# composer require raow/mautic-rss-to-email-bundle
Using version ^1.0 for raow/mautic-rss-to-email-bundle
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)

  • Removing willdurand/oauth-server-bundle (dev-master)

  • Installing mautic/composer-plugin (1.0.0)
    Loading from cache

  • Installing simplepie/simplepie (1.5.1)
    Loading from cache

  • Installing raow/mautic-rss-to-email-bundle (v1.0)
    Loading from cache

simplepie/simplepie suggests installing mf2/mf2 (Microformat module that allows for parsing HTML for microformats)
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Writing lock file
Generating autoload files

RSS vs REST API?

I'm a coding and Mautic noobie, so please forgive me, but why not just use the Wordpress REST API to get the posts instead of an RSS feed?

As I understand it, the API will give you completely granular control over which posts, and which post meta you pluck out.

For example, one user commented in a different issue about wanting to pull out custom fields.

Installing on 2.15.3 the RSS code renders nothing.

Tried to test this plugin, and after updating my docker container with the compose file and installing the plugin, the drop in code example failed to render anything on my tests, are there areas or logs which I can inspect what is going on?

Why not use api instead of RSS?

I'm a coding and Mautic noobie, so please forgive me, but why not just use the Wordpress REST API to get the posts instead of an RSS feed?

As I understand it, the API will give you completely granular control over which posts, and which post meta you pluck out.

For example, one user commented in a different issue about wanting to pull out custom fields.

{feeditem:image} not pulling image

Hello, this might not be an issue code wise - maybe we have to change our rss feed output:

Our site includes image like this within the RSS XML

<media:thumbnail url="webserver.com/thumbnail.jpg"/>

The URLs are working fine and show the thumbnail image. What do we have to do to make it work in mautic?

THANK YOU FOR THIS MODULE

Just wanted to leave this here to say thank you. You are a life saver. This plugin works beautifully.

It's been a long time coming and it's finally here, I had wanted something like this wayback in 2015.

Great work again Chris!

Not Working In Mautic 3

Hi there, just wanted to report that I tested this plugin in the new Mautic 3 and it's not working, is there any plans of updating the code so it's compatible with the new Mautic 3 version?

Install do not Work

Hello,

I have follow all steps to install plugin but on this step :

  • Click on the "Install/Upgrade Plugins" button

I have 0 new plugin installed.
Why?

Regards,
Pierre

Symfony/SimplePie issue after Mautic update

Hello Chris,

Since the latest Mautic update, I am getting this error. Any suggestions for a fix?

mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "SimplePie" from the global namespace. Did you forget a "use" statement?" at /var/www/html/aofanews/plugins/MauticRssToEmailBundle/Feed/Feed.php line 12 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"SimplePie\" from the global namespace.\nDid you forget a \"use\" statement? at /var/www/html/aofanews/plugins/MauticRssToEmailBundle/Feed/Feed.php:12)"}

Thanks and regards,

{feeditem:image} not displaying image

I'm trying to push the content and image into separate sections and the image is included in the block from wordpress the image is displayed when using {feeditem:description} but {feeditem:image} is null. Is there anyway to make this work?

` <title>test;</title>
https://test.category/xxx/

	<dc:creator><![CDATA[xxx]]></dc:creator>
	<pubDate>Tue, 14 Jan 2020 05:37:00 +0000</pubDate>
			<category><![CDATA[Uncategorised]]></category>
	<category><![CDATA[xx]]></category>
	<category><![CDATA[xx]]></category>
	<guid isPermaLink="false">https://test.category/?p=5138</guid>

				<description><![CDATA[<img width="1024" height="684" src="https://test.category/wp-content/uploads/2020/01/IMG_4777-1024x684.png" class="attachment-large size-large wp-post-image" alt="xx" srcset="https://test.category/wp-content/uploads/2020/01/IMG_4777-1024x684.png 1024w, https://test.category/wp-content/uploads/2020/01/IMG_4777-300x200.png 300w, https://test.category/wp-content/uploads/2020/01/IMG_4777-768x513.png 768w, https://test.category/wp-content/uploads/2020/01/IMG_4777-1536x1027.png 1536w, https://test.category/wp-content/uploads/2020/01/IMG_4777-930x620.png 930w, https://test.category/wp-content/uploads/2020/01/IMG_4777.png 1616w" sizes="(max-width: 1024px) 100vw, 1024px" /><p>xxxxxxx<a href="https://test.category/test/" class="" rel="bookmark">Read More &#187;<span class="screen-reader-text">xxxxxxx;</span></a></p>

The post xxx appeared first on xx.

]]>`

Output feed based on url from token?

Hello,

I want to specify the feed-url via an email token when I send emails with the rest api (see at https://developer.mautic.org/#extending-emails).

So I define the output of the feed like this:

{feed url="{token_feed}"} {feeditems count="3"}

But with this I get an error in the email like this:

Error: URL (https://ipm-promotion.de/feed/) empty or not valid

There is the output of my feed-url but it could not be processed.

If I use the feed directly not with the token everything works fine. But the usage of the token is very important for me.

Do you have any ideas how to get this working?

Best regards,

Timo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.