Forum OpenACS Development: CR API

Collapse
Posted by Michal Hanckowiak on
Hi everyone,

is it possible to "mount" a CR item in a folder/site-map
as we do with package instances?

if not, what is a purpose of item::get_url command?

Collapse
2: Re: CR API (response to 1)
Posted by Richard Hamilton on
Michal,

CR items are not mounted like package instances. In OpenACS CR items are objects within the database which, though often associated with and exclusive to a package, may not necessarily be.

For example, a photo in the photo album package is stored in the CR and can be retrieved independently of the photo-album package. This is done with a URL to the content item that is handled by the request processor itself, and is sometimes useful.

However, the proc you have asked about is a deprecated proc see below:

http://www.openacs.org/api-doc/proc-view?proc=item%3a%3aget%5furl

I hope that this is of some help.

Richard

Collapse
3: Re: CR API (response to 2)
Posted by Michal Hanckowiak on
Thanks for your reply!
Michal