meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:rssfeed [2025/03/07 12:54] – [Formatting the feed items] duncancplugin:rssfeed [2025/03/07 13:24] (current) – [Formatting the feed items] duncanc
Line 115: Line 115:
  
 The source of the content depends on the type of feed. For an RSS feed the ''description'' field is used if present, otherwise the ''content'' field. For an Atom feed the ''summary'' field is used if present, otherwise the ''content'' field. The source of the content depends on the type of feed. For an RSS feed the ''description'' field is used if present, otherwise the ''content'' field. For an Atom feed the ''summary'' field is used if present, otherwise the ''content'' field.
-The published date is formatted using a configuration setting. The default is to display as dd/mm/yyyy hh:mm. 
  
 Additionally, placeholders for custom tags can be included. The placeholders must match exactly the custom tags entered on the Settings page. Additionally, placeholders for custom tags can be included. The placeholders must match exactly the custom tags entered on the Settings page.
Line 131: Line 130:
 === Formatting the published date === === Formatting the published date ===
  
-If the php ''intl'' extension is enabled then the plugin will format the published date in the language of the feed, which is identified by the ''<language>'' element. The date is formatted using a format string containing placeholders as explained at [[https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table| https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table]]. This allows month and weekday names to be in the feed's language.+If the php ''intl'' extension is enabled then the plugin will format the published date in the language of the feed, which is identified by the ''<language>'' element. The date is formatted using a format string containing placeholders as explained at [[https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table| https://unicode-org.github.io/icu/userguide/format_parse/datetime/#date-field-symbol-table]]. This allows month and weekday names to be in the feed's language. For example, this shows the published date formatted in Spanish 
 +{{:plugin:rss12.png?nolink&500|}}
  
-If the php ''intl'' extension is not enabled then the plugin will format the published date using the php date() formatting as described at [[https://www.php.net/manual/en/datetime.format.php|https://www.php.net/manual/en/datetime.format.php]]. In this case month and weekday names will be in English.+If the php ''intl'' extension is not enabled or the feed does not identify its language then the plugin will format the published date using the php ''date()'' formatting as described at [[https://www.php.net/manual/en/datetime.format.php|https://www.php.net/manual/en/datetime.format.php]]. In this case month and weekday names will be in English.
 ==== Send a test message ==== ==== Send a test message ====
  
Line 274: Line 274:
   * 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 ''date()'' format to be used to display the published date. This is used when the php ''intl'' extension is not enabled. 
 +  * The php ''IntlDateFormatter'' format to be used to display the published date. This is used when the php ''intl'' extension is enabled.
   * Whether to filter item content for whitelisted tags only. The default is to filter.   * Whether to filter item content for whitelisted tags only. The default is to filter.
   * Whether to generate special content when an item's URL field is to YouTube or to a pdf file. The default is not to generate the special content.   * Whether to generate special content when an item's URL field is to YouTube or to a pdf file. The default is not to generate the special content.