RSS plugin.php update

Added static and sticky pages to Bludit RSS plugin.php
This commit is contained in:
erdifr 2019-04-01 08:38:26 -04:00 committed by GitHub
parent 30a4354207
commit ba525a3366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -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 version="1.0" encoding="UTF-8" ?>';
$xml .= '<rss version="2.0">';