So I am playing with the sitemap generator but I can not seem to get
it to stay in the home folder.
I set <cfset stSiteConfig.startPoint = application.navid.home> below
in the
But when I view the sitemap the generated XML includes dmNavitation
objects that are outside of the home node.
Did I not set the startPoint correctly? I suppose I should extend
dmNavigation to include a getSiteMapData() so I could also filter out
protected nodes.. Not sure I want google indexing protected Navs.
Thanks.
Chris
<cfsetting enablecfoutputonly="true" />
<!--- @@displayname: Google Sitemap --->
<!--- @@description: Generates a Google Sitemap for all Navigation
content items. --->
<!--- @@cacheStatus: 0 --->
<!--- @@cacheTimeout: 0 --->
<!--- @@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 stSiteConfig.startPoint = application.navid.home>
<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" />
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry