To make a google sitemap fore your last 500 news.
1)make a template.
- Code: Select all
<?PHP
$template_active = <<<HTML
<url>
<loc>{link=home/post}</loc>
<priority>0.7</priority>
<changefreq>weekly</changefreq>
</url>
HTML;
?>
2)sitemap.php
- Code: Select all
<?php
include_once 'head.php';
add_filter('news-allow-commentform', 'comment_form');
function comment_form(){return false;}
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<urlset>
<?
$number = 500;
$template = 'map';
include $cutepath.'/show_news.php';
?>
</urlset>
Run sitemap.php and you will see your news sitemap.

