[Radiant] Page Parts as Model (behavior) Attributes, Inheritance

John W. Long ng at johnwlong.com
Mon Jul 3 20:50:29 CDT 2006


Caylan Van Larson wrote:
> 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?

I am interested in some kind of generic model approach, but I think it's 
outside the scope of what I am trying to do with Radiant right now.

Here's another thread where someone suggested the same thing:
http://www.ruby-forum.com/topic/68469#87834

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list