bri-man

Google Sitemap for MT 5.0

Vote 0 Votes

I read this post for coding for a google sitemap. But, I wasn't sure where the and tags should go.

But then I also read this page, which lists an updated version of the google sitemap template. The difference between the two (v0.7 and v0.8) apparently includes page archiving. I'd think that the first version would be missing the "non-blog" pages without the additions... is that right?

So, does the 2nd version need the and tags?

I also read an article which mentioned using template caching for the sitemap. What is this? And do I need this? And if so, what would I do differently?

Reported on Movable Type 5

5 Replies

| Add a Reply
  • What is "need the and tags" exactly?

    I am guessing you are trying to use MT template code without using that handy dandy utility linked right above the Comments box.

    There are 2 schools of thought here, and I don't think any one of them is wrong. Some like to make an index template that calls a template module. Some like to create the entire XML file in the index template, no module required. I prefer the second method, where the entire thing lives in the Index template. Then I set the template to build on the publish queue.

    To answer your question, YES, the first example will not include non-blog content. It will only have the date-based entries listed in the XML output for the Google Sitemap file.

    I have not created a Google Sitemap for MT5 (I have no clients that use it) but I believe you want to use this inside the urlset tag.

    <mt:Blogs include_blogs="children" include_with_website="1">
    
  • Oh yea, also this is the documentation on using template module caching in MT. It is written for 4.2 but I doubt it has changed much in 5.

    http://www.movabletype.org/documentation/mt42/module-caching.html

  • Thank's a lot @ken edwards.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012