[Radiant] Page Parts as Model (behavior) Attributes, Inheritance
Caylan Van Larson
caylan at mac.com
Mon Jul 3 12:36:15 CDT 2006
Imagine for a moment adding a pluralized page called "Recipes" of
fictitious behavior "Model."
Inside of a Model the "Parts" are attributes for each instance (child-
page)
* part: ingredients
* part: serving-size
* part: notes
Other examples:
* Customers page-model with parts name, telephone, address
* Products page-model with parts name, price, description
* Maps page-model with name, image (could this be an avenue for
assets?), comments (versioned/appendable)
Notes
* When a child is created, it inherits parents blank parts upon
creation
* The Model behavior can optionally change the layout of parts to
appear as sequential fields
* Each part may have additional functionality, eg: rails-style
validations
Thoughts?
---
Caylan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060703/3b5848da/attachment.html
More information about the Radiant
mailing list