From b659a671515f94d59a8f172a94c8182f93a81c94 Mon Sep 17 00:00:00 2001 From: Christian Seel Date: Tue, 3 Sep 2013 18:40:53 +0200 Subject: [PATCH] add resource id as placeholder added the resource id as placeholder to the itemTpl. I currently need this to build a sitemap for a multilingual website (where I need the ID to find the translated resources). Should be useful for others too. --- .../googlesitemap/model/googlesitemap/googlesitemap.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/components/googlesitemap/model/googlesitemap/googlesitemap.class.php b/core/components/googlesitemap/model/googlesitemap/googlesitemap.class.php index 2a935f4..3a100f1 100755 --- a/core/components/googlesitemap/model/googlesitemap/googlesitemap.class.php +++ b/core/components/googlesitemap/model/googlesitemap/googlesitemap.class.php @@ -128,6 +128,7 @@ public function run($currentParent,$selfId = -1,$depth = 0) { } /* add item to output */ $output .= $this->getChunk($this->config['itemTpl'],array( + 'id' => $id, 'url' => $url, 'date' => $date, 'update' => $update, @@ -380,4 +381,4 @@ function datediff($interval, $datefrom, $dateto, $using_timestamps = false) { } return $datediff; } -} \ No newline at end of file +}