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"]