Hi all!
I'm new to Cake and have done a bit of experimentation. I've read the
manual through three times, so I get the basics. The reason I'm learning
Cake is to build this project specifically, but I don't know how to
organize it the Cake Way.
For a particular section of my site, I require a flexible kind of
content. If we call the type a 'Node', then the only content required
should be a title (and clean-url string, but that's taken care of).
Then, I want to be able to enable certain 'Traits' which will enable
more form fields for additional content.
Example Traits:
* Metadata: fields for custom keywords and description
* Video: field for video upload
* Plotline: dropdown for which plotline and a field to position the
node in order
* Gallery: add node to a given gallery
* etc.
You're probably wondering why I might need this kind of flexibility. I'm
constructing a very complicated mixed media project where a given
plotline might lead from prose to video to comic to song AND that video
in the middle might also branch off in a different direction, only to
wrap around at some point later. Because I can't foresee what kind of
interesting movement and pages will be required, I need the flexibility
without the weight of storing potentially infinite information for every
'node'. The js required to update form fields on the edit page on the
fly will be easy.
I assume that one table for the node's id, title, clean-url string,
created, and modified values... Then one table to join node_id to the
different traits... and finally the tables required for the trait-data
itself, which will be in a different form for each trait.
What I don't know yet is how in Cake to manage the connections. Do I
have one controller with components or multiple controllers? What's the
best way to update the necessary tables on save? The area I'm looking
for the most clarity in is how to organize the code Cake-style, NOT how
to write code that does this, if that makes it easy for you to write a
helpful response.
Thanks in advance!
--
Michael Continues
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---