Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 1.002 kb
<cfset ini_root="http://www.example.com/machblog" />
<cfset ini_startPage="index.cfm" />
<cfset ini_levelMax=3 />
<cfset ini_sitemap="http://www.example.com/sitemap.xml" />
<cfinvoke component="example.path.to.cfc._sitemap" method="sitemap" returnvariable="qry_sitemap" root="#ini_root#" url="#ini_startPage#" depthMax="#ini_levelMax#">
<cfinvoke component="example.path.to.cfc._sitemap" method="indexIt" returnvariable="qry_sitemapIndex" root="#ini_root#" query="#qry_sitemap#">
<cfinvoke component="example.path.to.cfc._sitemap" method="googleSitemap" returnvariable="sitemap" root="#ini_root#" query="#qry_sitemap#">
<cfinvoke component="example.path.to.cfc._sitemap" method="submitSitemap" url="#ini_sitemap#" returnvariable="qry_sitemap" >
<cffile
action = "write"
<!--- get root path example: D:/webroot/sitemap.xml --->
file = "#GetDirectoryFromPath(GetCurrentTemplatePath())#sitemap2.xml"
output = "#sitemap#"
addNewLine = "no"
charset = "utf-8">
Jump to Line
Something went wrong with that request. Please try again.