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

Fix for gsitemap SEF URL Aliases

This commit is contained in:
Cameron
2022-03-04 09:22:36 -08:00
parent c889d666b9
commit 3592c5ae30
2 changed files with 12 additions and 10 deletions

View File

@@ -28,9 +28,9 @@ 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' => "latestPosts",
'sef' => 'latest', // used in URL. eg. news-latest-sitemap.xml
'name' => "All News Posts",
'function' => "allPosts",
'sef' => 'posts', // used in URL. eg. news-posts-sitemap.xml @see e107_plugins/gsitemap/e_url.php L45
);
return $config;
@@ -97,7 +97,7 @@ class news_gsitemap
/* Custom Function for dynamic sitemap of news posts */
public function latestPosts()
public function allPosts()
{
$data = $this->getNewsPosts();