Welcome, Guest
Username: Password: Remember me

TOPIC: Create multi lists

Create multi lists 22 Apr 2013 14:23 #7066

  • alanw4c
  • alanw4c's Avatar
  • Offline
  • New Member
  • Posts: 10
  • Karma: 0
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.
Last Edit: 23 Apr 2013 11:09 by alanw4c. Reason: no reply but I found more info
The administrator has disabled public write access.
Time to create page: 0.175 seconds

Get Started