From ba525a3366f514d321f3447b6fac5af0639c3533 Mon Sep 17 00:00:00 2001 From: erdifr Date: Mon, 1 Apr 2019 08:38:26 -0400 Subject: [PATCH] RSS plugin.php update Added static and sticky pages to Bludit RSS plugin.php --- bl-plugins/rss/plugin.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bl-plugins/rss/plugin.php b/bl-plugins/rss/plugin.php index 3753948b..207dafe5 100644 --- a/bl-plugins/rss/plugin.php +++ b/bl-plugins/rss/plugin.php @@ -42,14 +42,16 @@ class pluginRSS extends Plugin { // Amount of pages to show $numberOfItems = $this->getValue('numberOfItems'); - // Page number the first one - $pageNumber = 1; - - // Only published pages - $onlyPublished = true; - - // Get the list of pages - $list = $pages->getList($pageNumber, $numberOfItems, $onlyPublished); + // Get the list of public pages (sticky and static included) + $list = $pages->getList( + $pageNumber=1, + $numberOfItems, + $published=true, + $static=true, + $sticky=true, + $draft=false, + $scheduled=false + ); $xml = ''; $xml .= '';