Created
September 15, 2010 07:55
-
-
Save modius/580391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsetting enablecfoutputonly="true" /> | |
<!--- @@displayname: Google Sitemap ---> | |
<!--- @@description: Generates a Google Sitemap for all Navigation content items. ---> | |
<!--- @@cacheStatus: 1 ---> | |
<!--- @@cacheTimeout: 60 ---> | |
<!--- @@fuAlias: sitemap ---> | |
<!--- | |
// build sitemap xml | |
---------------------------------------------------------------------------------------------------> | |
<cfset oSiteMap=createObject('component', 'farcry.core.packages.googleSiteMap.sitemap').init()> | |
<cfset stSiteConfig=structNew()> | |
<cfset stSiteConfig.domainName="#cgi.server_name#"> | |
<cfset xml=oSiteMap.generate(stSiteConfig=stSiteConfig,siteMapType="siteMap", types="dmNavigation")> | |
<!--- | |
// view | |
---------------------------------------------------------------------------------------------------> | |
<CFHEADER NAME="content-disposition" VALUE="inline; filename=dmnavigation.#now()#"> | |
<cfheader name="Content-Type" value="text/xml"> | |
<cfoutput>#xml#</cfoutput> | |
<cfsetting enablecfoutputonly="false" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment