meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| plugin:rssfeed [2024/12/22 14:01] – [Deleting RSS feed items] duncanc | plugin:rssfeed [2026/02/17 13:56] (current) – [Formatting the feed items] duncanc | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| ====== Purpose ====== | ====== Purpose ====== | ||
| - | This plugin lets you create campaigns that include content from RSS and Atom feeds and are automatically repeated at regular intervals. | + | This plugin lets you create campaigns that include content from an RSS or Atom feed and which are automatically repeated at regular intervals. |
| So, for example, you can have a campaign that is sent every day at 09:00 which contains items from an RSS feed that were published in the previous day. | So, for example, you can have a campaign that is sent every day at 09:00 which contains items from an RSS feed that were published in the previous day. | ||
| Line 29: | Line 29: | ||
| ===== Creating an RSS campaign ===== | ===== Creating an RSS campaign ===== | ||
| - | ==== Add an RSS feed ==== | + | ==== Add a feed ==== |
| - | The plugin adds a tab to the Send a campaign page on which you specify the URL of the RSS feed. | + | The plugin adds a tab to the Send a campaign page on which you specify the URL of the RSS or Atom feed. |
| You should validate the URL first, by opening it in a browser, to ensure that it is valid and returns what you expect. | You should validate the URL first, by opening it in a browser, to ensure that it is valid and returns what you expect. | ||
| Additionally you can choose whether feed items should be displayed in ascending order of publication date (oldest first) or in descending order (latest first). | Additionally you can choose whether feed items should be displayed in ascending order of publication date (oldest first) or in descending order (latest first). | ||
| Line 106: | Line 106: | ||
| ==== Formatting the feed items ==== | ==== Formatting the feed items ==== | ||
| - | When phplist is building the email to be sent the plugin replaces the [RSS] placeholder in the message content by the available feed items, each of which is formatted using an RSS template. The default RSS template is specfied | + | When phplist is building the email to be sent the plugin replaces the [RSS] placeholder in the message content by the available feed items, each of which is formatted using an RSS template. The default RSS template is specified |
| - | The template | + | In the template placeholders that will be replaced by fields from the item: |
| - | * [CONTENT] | + | |
| * [TITLE] | * [TITLE] | ||
| * [URL] | * [URL] | ||
| * [PUBLISHED] | * [PUBLISHED] | ||
| + | * [AUTHOR] | ||
| + | * [DESCRIPTION] | ||
| + | * [CONTENT] | ||
| - | The source | + | A feed item may provide a short summary instead |
| - | The published date is formatted using a configuration setting. The default is to display as dd/mm/yyyy hh:mm. | + | |
| Additionally, | Additionally, | ||
| Line 128: | Line 129: | ||
| The template is on the Settings page in the RSS Settings group. | The template is on the Settings page in the RSS Settings group. | ||
| + | |||
| + | === Formatting the published date === | ||
| + | |||
| + | If the php '' | ||
| + | {{: | ||
| + | |||
| + | If the php '' | ||
| ==== Send a test message ==== | ==== Send a test message ==== | ||
| Line 195: | Line 203: | ||
| + | ==== Deleting all items ==== | ||
| + | During testing of an RSS campaign it can be useful to remove all items so that the feed can be re-fetched. The page has a **Reset feeds** function which will delete all items and reset the '' | ||
| ===== View email in browser ===== | ===== View email in browser ===== | ||
| Line 268: | Line 278: | ||
| * Text to append when the title of the latest item is used in the subject. | * Text to append when the title of the latest item is used in the subject. | ||
| * Additional feed elements that should be included in each item's data. | * Additional feed elements that should be included in each item's data. | ||
| - | * The format to be used to display the published date. | + | * The php '' |
| - | * Whether to filter item content for whitelisted tags only. The default | + | * The php '' |
| - | * Whether to generate special content | + | |
| - | * The maximum size of the HTTP body of the feed response. | + | |
| - | * Whether to use the summary content or full content for the [CONTENT] placeholder. | + | |
| - | The set of whitelisted tags are | + | |
| - | + | ||
| - | ''' | + | |
| - | + | ||
| - | When an item's URL field (taken from the '' | + | |
| - | + | ||
| - | <code html>< | + | |
| - | <link href=" | + | |
| - | + | ||
| - | For a YouTube video the content will be an iframe element that refers to the video. This is not really useful because many email clients will not display an iframe element. | + | |
| - | <code html>< | + | The plugin used to have settings for allowing only whitelisted tags, generating special content for a Youtube URL, and specifying the maximum size of the HTTP response. These were specific to the Picofeed package which is no longer used. |
| - | For a pdf file the content will be a link to the file. | + | There was also a setting for whether to use a feed item's '' |
| - | <code html>< | + | |
| {{: | {{: | ||