On another note, is there anyway we can get the sitemap to recognise where a PDF file sits and list it accordingly?
xml-sitemaps.com picks up and lists the PDF's, and I know they're a ranking booster... Anything we can do with this?
Thanks
News articles in XML sitemap (Sitemap Made Simple)
Re: News articles in XML sitemap (Sitemap Made Simple)
Last edited by katea on Fri Oct 09, 2009 1:12 pm, edited 1 time in total.
SOLVED - BLOGS in XML sitemap (Sitemap Made Simple)
For CGBlog
For BlogsMadeSimple
Change 60 to your number ;o)
Thanks to Jeremy Bass
Code: Select all
{* sitemap template *}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
{foreach from=$output item='page'}
<url>
<loc>{$page->url}</loc>
<lastmod>{$page->date|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
{capture assign='junk'}{cms_module module='CGBlog' number="10000"}{/capture}
{foreach from=$items item=entry}
{assign var=utmpBLOGS value=$entry->detail_url}
<url>
<loc>{$utmpBLOGS}</loc>
<lastmod>{$entry->postdate|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
</urlset>
For BlogsMadeSimple
Code: Select all
{* sitemap template *}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
{foreach from=$output item='page'}
<url>
<loc>{$page->url}</loc>
<lastmod>{$page->date|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
{capture assign='junk'}{cms_module module='Blogs' numentries="10000"}{/capture}
{foreach from=$items item=entry}
{assign var=utmpBLOGS value=$entry->entryurl|replace:'//':'/60/'|replace:'http:/60':'http:/'}
<url>
<loc>{$utmpBLOGS}</loc>
<lastmod>{$entry->time|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
</urlset>
Change 60 to your number ;o)
Thanks to Jeremy Bass
Re: News articles in XML sitemap (Sitemap Made Simple)
wow how did this get moved here lol... glad to help, it's good karam for the soul 
cheers
Jeremy

cheers
Jeremy