Forum OpenACS Development: Re: To associate 2 content_types

Collapse
Posted by Iuri Sampaio on
Hi there,

As one of other solutions, I've written the following chunks to acs_rels data model, plus I’ve added a few other glue codes along with item-add.tcl , photos-add and so on. All them within a new and customized page and package.

Is there any documentation/tutorial about how to use cr_items and revisions within custom packages?

I found none at:
1. https://openacs.org/storage/download/OpenACS_Tutorial.htm?file_id=2938446
2. https://openacs.org/doc/acs-package-dev

Example:
From item_id to album_id
set album_id [relation::get_object_two -object_id_one $item_id -rel_type "ee_item_album_rel"]

and vice-versa
set item_id [relation::get_object_one -object_id_two $album_id -rel_type "ee_item_album_rel"]

Collapse
Posted by Iuri Sampaio on
I guess I got it!
https://openacs.org/doc/acs-content-repository/

I wonder if there's a tutorial as in:
HOW TO USE OBJECTS? :
https://openacs.org/storage/download/OpenACS_Tutorial.htm?file_id=2938446#_Toc229651001

Best wishes,

Collapse
Posted by Iuri Sampaio on
A suggestion:
we could add this thread as a new topic within the documentation
of https://openacs.org/doc/acs-content-repository/

There's an item already, called as: Relating content to other objects.

This thread could be:
Relating content to other content items
https://openacs.org/doc/acs-content-repository/

Best wishes,