diff --git a/htdocs/langs/en_US/website.lang b/htdocs/langs/en_US/website.lang
index 2c555b40c20..6109f3ca879 100644
--- a/htdocs/langs/en_US/website.lang
+++ b/htdocs/langs/en_US/website.lang
@@ -127,4 +127,6 @@ OtherLanguages=Other languages
UseManifest=Provide a manifest.json file
PublicAuthorAlias=Public author alias
AvailableLanguagesAreDefinedIntoWebsiteProperties=Available languages are defined into website properties
-ReplacementDoneInXPages=Replacement done in %s pages or containers
\ No newline at end of file
+ReplacementDoneInXPages=Replacement done in %s pages or containers
+RSSFeed=RSS Feed
+RSSFeedDesc=You can get a RSS feed of latest articles with type 'blogpost' using this URL
\ No newline at end of file
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 7cd0660cdb1..b6d2404de6f 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2979,15 +2979,10 @@ if ($action == 'editcss')
// RSS
print '
';
- //$htmlhelp = $langs->trans("Example").' : ';
- //$htmlhelp .= dol_htmlentitiesbr($manifestjsoncontentdefault);
- $htmlhelp = '';
- print $form->textwithpicto($langs->trans('RSSFeed'), $htmlhelp, 1, 'help', '', 0, 2, 'rsstooltip');
+ $htmlhelp = $langs->trans('RSSFeedDesc');
+ print $form->textwithpicto($langs->trans('RSSFeed'), $htmlhelp, 1, 'help', '', 0, 2, '');
print ' | ';
- //print $langs->trans("RSS").': '.$form->selectyesno('WEBSITE_ENBALE_RSS', $website->use_rss, 1).' ';
- //$doleditor = new DolEditor('WEBSITE_ENBALE_RSS', $manifestjsoncontent, '', '220', 'ace', 'In', true, false, 'ace', 0, '100%', '');
- //print $doleditor->Create(1, '', true, $langs->trans("File").' manifest.json', 'text');
- print '/wrapper.php?rss=1[&l=XX]';
+ print '/wrapper.php?rss=1[&l=XX][&limit=123]';
print ' |
';
print '';
diff --git a/htdocs/website/samples/wrapper.php b/htdocs/website/samples/wrapper.php
index bb761c5f894..abb2bea0179 100644
--- a/htdocs/website/samples/wrapper.php
+++ b/htdocs/website/samples/wrapper.php
@@ -13,6 +13,7 @@ $modulepart = GETPOST('modulepart', 'aZ09');
$entity = GETPOST('entity', 'int') ?GETPOST('entity', 'int') : $conf->entity;
$original_file = GETPOST("file", "alpha");
$l = GETPOST('l', 'aZ09');
+$limit = GETPOST('limit', 'int');
// Parameters for RSS
$rss = GETPOST('rss', 'aZ09');
@@ -103,7 +104,7 @@ if ($rss) {
$filters = array('type_container'=>'blogpost');
if ($l) $filters['lang'] = $l;
- $MAXNEWS = 20;
+ $MAXNEWS = ($limit ? $limit : 20);
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, $filters);
$eventarray = array();
if (is_array($arrayofblogs)) {