Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Create multi lists 22 Apr 2013 14:23 #7066

Hi I'm new to Cook. I like the bits I've worked with so far but I'd like to build a form that has a 1 to many relationship. Specifically I want to build a component that lets me tag files or text. So I've created a table for the files that are uploaded and I've created a table for the created tags. This all works great. I can create pages that allow me to tag the file with one of the created tags but not more than one. Is it possible to build that relationship in Cook?

Normally if I was writing in PHP this would be pretty straightforward. I'd have a linking table that stored the Unique id of the file and of the tag. Then I'd do a join to get the result but I can't see how to do that in Cook.

If anyone can help I'd be grateful.
Thanks

Hi I've now found some more information on this. There is a workshop.zip file with various slides in it. It looks like the system itself isn't capable of doing N:M relationships and this needs coded by hand instead.

The lack of this means for me the component developer at the moment isn't really strong enough to help me achieve significantly faster module creation. Also the lack of easy to follow documentation or videos for more advanced stuff is a problem.

I'm sure it's fine if you want to do an advanced form or similar but otherwise it looks to me like you still need to write the code for the component. My test for all CCK type stuff is whether you can easily produce a user registration system which includes an AVATAR - this doesn't do that.

Please Log in or Create an account to join the conversation.

Last edit: by alanw4c. Reason: no reply but I found more info
  • Page:
  • 1
Time to create page: 0.068 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started