Skip to content

Instantly share code, notes, and snippets.

@sajogo
Created February 1, 2012 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajogo/1718080 to your computer and use it in GitHub Desktop.
Save sajogo/1718080 to your computer and use it in GitHub Desktop.
Google Sitemap for ZMS - Developer Version for ZMS Developers Yahoo List
<?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">
<dtml-in "getLanguages(REQUEST)">
<dtml-call "REQUEST.set('lang',_['sequence-item'])">
<dtml-with content>
<dtml-call "REQUEST.set('obs',[this()])">
<dtml-call "obs.extend(filteredTreeNodes(REQUEST,PAGES))">
<dtml-in obs>
<dtml-if "filteredChildNodes(meta_types=PAGEELEMENTS) and not isResource(REQUEST)">
<url>
<metaid><dtml-var "meta_id"></metaid>
<absurl><dtml-var "absolute_url()" html_quote></absurl>
<loc><dtml-var "getHref2IndexHtml(REQUEST, deep=0)" html_quote></loc>
<lastmod><dtml-var "getLangFmtDate(getObjProperty('change_dt',REQUEST),'eng','%Y-%m-%d')"></lastmod>
<priority><dtml-if "getObjProperty('attr_bot_priority',REQUEST)"><dtml-var "getObjProperty('attr_bot_priority',REQUEST)" fmt="%.5f"><dtml-else>0.5</dtml-if></priority>
</url>
</dtml-if>
</dtml-in>
</dtml-with>
</dtml-in>
</urlset>
@sajogo
Copy link
Author

sajogo commented Feb 1, 2012

contains XML elements for debugging - 'metaid' and 'absurl'
according to your content structure - modify parameter 'deep' in the call to getHref2IndexHtml()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment