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.064 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started