Forum OpenACS Q&A: installing BCMS

Collapse
Posted by Nagita Karunaratne on
I thought I'd install BCMS and use it for learning the Content Repository service. I put the bcms directory from /contrib into the packages directory and installed it using the package manager.

In index.tcl, I changed:
  set cr_folder_root [bcms::get_cr_folder_root]
to:
  set cr_folder_root [bcms::folder::get_cr_root_folder]

Then I tried to view 'index'  but [parameter::get -parameter bcms_root] returns nothing (maybe because the parameter is not configured)

On the other hand. the bcds package installed three parameters (bcms_root_folder_id, root_folder_id, context). How does it do this? on which file?

How does a package install parameters? File bcms.info does not specify any parameters.

Collapse
2: Re: installing BCMS (response to 1)
Posted by Jade Rubick on
I'd recommend looking at my content repository document to get started:

http://rubick.com/openacs/

Collapse
3: Re: installing BCMS (response to 1)
Posted by Jun Yamog on
Hi Nagita,

I am the author of bcms.  Currently the bcms in the CVS is a bit out of synch.  I will be deleting the bcms/www dir.  Which was not meant to be used anymore.  You will need bcms-ui-*.  Like bcms-ui-wizard to actually manage the content.  Although as of now I have not yet update bcms-ui-wizard to reflect the changes I have made on bcms.  I will be commiting a new UI bcms package about next week.  Which should be in synch with the bcms.  The new UI looks more of like explorer or nautilus in concept, no wizardy wiz.  The wizard UI was asked by a client, although I plan to still update it too.

The older bcms-ui-wizard you needed to manually set the parameter through the site-map UI set parameter.  The newer UI has an admin UI for you to create a folder and select a folder on CR, if those parameters are not yet set.

Currently bcms is not the best way to learn CR, maybe in few weeks when things are in more stable shape.  The new UI will also come with includable forms, list builder template.

Collapse
4: Re: installing BCMS (response to 1)
Posted by David Kuczek on
Hey Jun,

what is the situation on BCMS? At the moment I am concidering the use of ETP + Photo-Album + Files in CR ----- OR ------ BCMS... I have dotLRN 1.0.1 installed. How much of tweaking will be involved? Would you recommend using it for a production site?

Cheers

Collapse
5: Re: installing BCMS (response to 1)
Posted by Jun Yamog on
Hi David,

Current code I have has pretty ok functionality.  I can commit to contrib.  But not yet a out of the box package yet, still has lot of rough edges.  Major added stuff is draft search widget.  And bcms-ui-base can now relate items just like bcms-ui-wizard.

I am not sure if it can be used from production site.  Atleast older code was used for one.  But the newer code, still have to test.  One thing to note of is that bcms is a data model less package.  It current does have some plsql, but all of them are more less patches.  CR's data model is pretty solid already.

If you can help development then I will commit more to contrib more frequently.  I also kinda forgot to meet with Nagita.

bcms-ui-base currently needs list builder that is on head and I have a ad_page_contract that is patched to better work with includes.

Collapse
6: Re: installing BCMS (response to 1)
Posted by David Kuczek on
Hey Jun,

did you develop some kind of widget that helps the content creator to define titles, contents, links, images, files? I am thinking of something kinda like Lars did for his blogger, but with cross browser abilities. See my recent thread:

https://openacs.org/forums/message-view?message_id=124009

Anybody else developing something like that. This widget could be used for basically all input fields within the toolkit.

Collapse
7: Re: installing BCMS (response to 1)
Posted by Jun Yamog on
Hi David,

No I haven't done any widget for that.

Jun

Collapse
8: Re: installing BCMS (response to 1)
Posted by Mark Aufflick on
Hi Yun,

I am interested in looking at bcms (I am starting to edge toward cms mode again). I was just wondering if the /contrib bcms folder is your latest code (or near enough).

Cheers,

Mark.

Collapse
9: Re: installing BCMS (response to 1)
Posted by Jun Yamog on
Hi Mark,

Not you too... its Jun.  Not Yun.

The bcms package should be near latest.  Both me and Lars are doing modification on it.  Lars has upped the requirement that it requires 5.0 CR.  You can force install in on 4.6.3 and run bcms-compat.sql.  Please take note that I have patched some CR plsql, I haven't fully tested them for compatibility.  Don't install bcms on a CR production site yet unless you know what you are doing.

Once its installed you install bcms-ui-base.  I need to commit a the latest code though.  You will also need to copy/move the files from /bcms-ui-base/templates to acsroot/templates.  Anyway when you visit bcms-ui-base as admin you should be redirected to /admin url.  Set the content folder and template folder.  I recommend that you create a sub folder as those are CR root's folder.  There will be missing files in bcms-ui-base which are the custom content types on my current project.  Aside from that it should be workable.  I haven't tested yet though.

I plan to roll out a tar ball or apm for the 2 packages maybe bcms-ui-wizard too.  Anyway just tell me how it went so I can fix it up for general consumption.

Collapse
10: Re: installing BCMS (response to 1)
Posted by C. R. Oldham on
Jun,
Set the content folder and template folder. I recommend that you create a sub folder as those are CR root's folder.

I'm sorry to be dense. How or where could I create those folders? You don't mean folders in the filesystem, you mean CR folders, correct?

Collapse
11: Re: installing BCMS (response to 1)
Posted by Jun Yamog on
The admin interface of bcms-ui-base can create the folders in CR.  Just create the folders, otherwise you will be using CR's root folder, which is ok too.

On a side note folders created on template root folder will be published by the CR on a periodic time on acsroot/templates.  Please avoid using "public" and "bcms-ui-base" folder name on the template folder.

Collapse
12: Re: installing BCMS 0.3 (response to 11)
Posted by Davide Toppazzini on
Hi Jun,

I install OpenACS 5.1 on server (RH+Oracle), it returns any errors, and everything is ok.

Then I install BCMS but when I set root folder (http://{myserver}/testopenacs/bcms/admin/set-root-folder) I've been viewing a 'friendly' Server Error:

"No fullquery for dbqd.bcms.tcl.bcms-folder-procs.bcms::folder::get_cr_root_folder.get_cr_root_folder and default SQL empty - query for statement missing
    while executing
"error "No fullquery for $statement_name and default SQL empty - query for statement missing"""

Query missing? what's means?

I've searched in CVS and I've found the same file.(bcms-folder-procs.tcl):

ad_proc -public bcms::folder::get_cr_root_folder {} {
    Gets the CR Pages root, this is helpful as BCMS will always
    create its root from there.

    @return the folder_id of cr_folder's Pages root
} {
    return [db_string get_cr_root_folder {}]  # <----  WHERE IS THE QUERY???
}

How could I install BCMS?

Bye Davide

Collapse
13: Re: installing BCMS (response to 1)
Posted by Dave Bauer on
Don't try to intsall BCMS. Its not really supported, and probably doesn't work in recent versions of OpenACS. In genearl Xowiki is a much better content management solution and fills the space BCMS used to fill.
Collapse
14: Re: installing BCMS (response to 13)
Posted by Davide Toppazzini on
Hi Dave,

Thank's for great help.

Now I've a seriouse problem. I have a web site with 18,000 pages made up by ACS 4.2 and CMS module v. 4.1.1.
I've been installed this module in OACS 5.1 but I have too much code to convert for new platform.

Down here I wrote an example:

invalid command name "template::get_db_handle"
while executing
"template::get_db_handle".....

Do you know if someone have install cms module 4.1.1 in some version of OpenACS succesfully?

Thanks.

Collapse
15: Re: installing BCMS (response to 1)
Posted by Dave Bauer on
It looks like its using the template database api which has been superseded by the db_* apis.

You can probably write the missing template:: procedures to handle the queries.

For get_db_handle, the db_apis take of of database handles automatically.

You can probably also find the ACS 4.2 tcl procedures and use them in a newer OpenACS without changes.