Ad Space
Cloud Computing and Cloud Hosting by Rackspace
Ad Space
Cloud Computing and Cloud Hosting by Rackspace

Hosting Geared For
your CMSMS needs

CMSMS ready Hosting

Hosting Starting at $15

  • • Hosted Mail
  • • Personal Control Panel
  • • CMSMS 1.8.1 tested
  • • Lightly packed servers
  • • Intrusion Detection
  • • URL monitored
  • • Custom solutions available

Order your hosting Now

CP Blogs

Make SitemapMadeSimple include News articles

Posted by: Jeremy Bass
on May 24, 2009

Category:

SEO, Coding, Intermediate, Smarty, CMS Made Simple

Summary:

Are you having a hard time getting you blogs or articels in CMSMS to pop up in Google?


Ad Space

So you want to get the most out of your SEO for CMSMS? You have a lot of blogs or articles that you want Google to pick up right? Well as you may have read in the Google docs one way to insure you’re your page is craw and gets index preference you need a XML sitemap. The issue is some inline mods look as if they are move to another page, but they are not, the page alias is the same. So sitemaper doesn’t work. One of those items is the News that comes pre-installed on your CMSMS setup. The trick here is to render out details page and land it in there. So what do we is...

   
   {capture assign='junk'}{news number='1000'}{/capture}
   {foreach from=$items   item=entry}
   {assign var=utmpNEWS   value=$entry->moreurl|replace:'//':'/1/'|replace:'http:/1':'http:/'}
 <url>
      <loc>{$utmpNEWS}</loc>
 
 {if $entry->formatpostdate}
      <lastmod>{$entry->formatpostdate|date_format:"%Y-%m-%d"}</lastmod>
 {/if}
 <priority>{$page->priority}</priority>
      <changefreq>{$page->frequency}</changefreq>
 </url>
 {/foreach}
  

friendly list of URLs for all of your News articles...

Hope this helps
Cheers
jeremyBass

Ad Space

Get Social With It

[+]

Add A Comment

[+]

Code in the picture:
Title:
Your Name(*):
Email:
Notify me of any further comments to this thread:
Website:
Comment(*):
 
Previous page: Hosting FAQ Next page: Experimental