RSS plugin.php update
Added static and sticky pages to Bludit RSS plugin.php
This commit is contained in:
parent
30a4354207
commit
ba525a3366
|
@ -42,14 +42,16 @@ class pluginRSS extends Plugin {
|
||||||
// Amount of pages to show
|
// Amount of pages to show
|
||||||
$numberOfItems = $this->getValue('numberOfItems');
|
$numberOfItems = $this->getValue('numberOfItems');
|
||||||
|
|
||||||
// Page number the first one
|
// Get the list of public pages (sticky and static included)
|
||||||
$pageNumber = 1;
|
$list = $pages->getList(
|
||||||
|
$pageNumber=1,
|
||||||
// Only published pages
|
$numberOfItems,
|
||||||
$onlyPublished = true;
|
$published=true,
|
||||||
|
$static=true,
|
||||||
// Get the list of pages
|
$sticky=true,
|
||||||
$list = $pages->getList($pageNumber, $numberOfItems, $onlyPublished);
|
$draft=false,
|
||||||
|
$scheduled=false
|
||||||
|
);
|
||||||
|
|
||||||
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
|
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
|
||||||
$xml .= '<rss version="2.0">';
|
$xml .= '<rss version="2.0">';
|
||||||
|
|
Loading…
Reference in New Issue