1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

Use separate SEF value.

This commit is contained in:
Cameron
2022-03-03 18:23:05 -08:00
parent 7254c87a04
commit c889d666b9
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,8 @@ class news_gsitemap
// Viewable from my-website.com/news-latest-sitemap.xml ie. plugin-folder + function + 'sitemap.xml'
$config[] = array(
'name' => "Latest News Posts",
'function' => "latest",
'function' => "latestPosts",
'sef' => 'latest', // used in URL. eg. news-latest-sitemap.xml
);
return $config;
@@ -96,7 +97,7 @@ class news_gsitemap
/* Custom Function for dynamic sitemap of news posts */
function latest()
public function latestPosts()
{
$data = $this->getNewsPosts();