Update your sitemap.xml with a UDT

A place to make for-pay "CMS made simple" job offerings
Locked
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Update your sitemap.xml with a UDT

Post by angelpeace »

by Goran Ilic => i'm OK.
{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='News' detailpage='your-news-detail-page' number='1000'}
{/capture}
{foreach from=$items item='entry'}
<url>
<loc>{$entry->moreurl}</loc>
<lastmod>{$entry->postdate|date_format:"%Y-%m-%d"}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
<!--Add more-->
</urlset>
Then i try to do with {Products} Module, it not done.

<!--Add More--> with Products
{capture assign='junk'}
{cms_module module='Products'}
{/capture}
{foreach from=$items item='entry'}
{assign var='datum' value=$entry->modified_date}
{assign var='locatie' value=$entry->detail_url}
<url>
<loc>{$locatie}</loc>
<lastmod>{$datum}</lastmod>
<priority>{$page->priority}</priority>
<changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}
Result Info - SiteMap Made Simple => OK
But Save sitemap.xml is not done.

Why not with {Products} help me.
.: No gains without pains :.
Lee's Website: http://www.idev.com.vn;
Locked

Return to “Help Wanted (commercial)”