Folks,

Rolling out another mini-tag library for Spectra developers, 
dmCreateTypev2.  This is really something for ongoing development - 
though these tags can be *extremely* handy in a production environment. 
  To be honest I can't really imagine developing without these tags.

The code is available here:
http://necromedia.daemon.com.au/navajo/display.cfm?objectId=EB36F67C-E286-4F23-9B4EF8AFE847523C

An interesting discussion for the list in any event is how people go 
about building type definitions in their applications. And perhaps more 
importantly, if you have to evolve the type schema in someway once you 
already have bucket loads of contentobject instances, how do you achieve 
this?

The first problem - creating types - is generally attacked by run-once 
scripts, WDDX imports or using the dreaded Webtop Wizards.  dmCreateType 
tags let you build scripts that can be run as many times as you like. 
If the type already exists it compares the definition with the new one 
you are creating... then makes the appropriate modifications.

The second problem - evolving the schema with existing data - is 
normally approached by writing specific migration scripts or holding 
onto legacy property definitions.  dmCreateType lets you select the 
properties you'd like to delete and then rolls through all the instances 
updating them.  Added properties are automatically added. (this can take 
a while on large datastores).

I was hoping to release these when I first mentioned it to the list a 
couple of weeks ago.. however, our code was riddled with fairly 
localised junk - took the easter weekend to knock out a fresh batch of code.

The current release only does standard Type definitions.  PLP's and Rule 
creation scripts will be added to the release as soon as I have time to 
re-engineer our code.

The code is very heavily commented and I have included three sample 
creation scripts to get you going.  Enjoy!

-- geoff bowers
CEO, Daemon
http://www.daemon.com.au/

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to