Forum OpenACS Q&A: acs-content-repository

Collapse
Posted by Sandhya Subash on
Hi,

I want to create a custom CR application? I am reading the doc for CR
and got a question.To create a new content type I have to write a sql 
script. does that mean there will be tables for each content  type.
I can't seem to mount a ACS Content Repository. Is this part of 
Content management System(CMS) package .

Thanks,
Sandhya

Collapse
Posted by Jun Yamog on
Hi Sandhya,

The CR is part of the core and its a service package so there is no UI, you can not mount it.  The UI are CMS, File-Storage, ETP, etc., CMS currently use most of CR's capability and use the API properly.

To create a content type just use the API, content_type__create.  This will create the table, etc. for you.  You can also add attributes to this by API call, don't use direct table alter.  There are also 2 views that will be created.  This is for you to insert data on and select data.  Try to read more of the API of CR.

Oh yeah after creating your custom content type if you do plan to use cr_folders you must either register it on the Pages root folder or your own content folder.