Forum OpenACS Development: Re: To associate 2 content_types

Collapse
Posted by Dave Bauer on
If you control at least one of the objects/packages code you can always add a foreign key or a simply mapping table for many to many or one to many relations.

You can use acs_data_links for simple relationships also.

See acs-tcl/tcl/application-data-links-procs.tcl

Much simpler. If you are adding code to acs_rels you probably are making it more difficult than it needs to be.

Collapse
Posted by Iuri Sampaio on
Right on! The ad_proc /api-doc/proc-view?proc=application_data_link%3a%3anew&source_p=1

is the one.

Thanks again Dave!