Google sitemap creator for Model-Glue apps

I have a new project hosted at RIA Forge. It's a small idea which I just want to put out there for now, basically a Google Sitemap tool for Model Glue. The idea is simple, using your ModelGlue.xml file (and any includes) the application looks through all your public <event-handler> to create a simple Google Sitemap.

All you need to do is drop the folder into the root of your MG app and from within there is an "index.cfm" file with the following small bit of code in it.

sitemaptool = createObject('component', 'sitemaptool'); theXml1 = siteMapTool.getSiteMap("/config/coldSpring.xml", "siteMap.xml"); writeOutput(HTMLCodeFormat(theXml1)); The component first looks into your ColdSpring.xml config file for the "modelGlueConfiguration" bean. From there it picks up your values like "eventvalue" and "defaulttemplate". Using the "configurationPath" it reads your ModelGlue.xml including any <includes> you use to find all the <event-handler>'sThe variable "theXml1" holds the sitemap and from there you can do what you want with it. Also check out "index_documented.cfm" in the zip file its where I have put in some details of other ways of calling the component. Obviously all the work is done within the sitemaptool.cfc component so dig into there and have a look too.Get it from where you can add issues etc
comments powered by Disqus