Forum OpenACS Q&A: ACS Catagories

Collapse
Posted by Richard Hamilton on
Reading though various posts I came to the conclusion that the problem with the lack of indexing might be because I have to specify an ACS Category for my content page before xowiki will index it.

I therefore tried to follow these instructions:

https://openacs.org/xowiki/en/XoWiki_User_Guide

I went to the Site Map and selected 'categories'. There are none set. I clicked on 'Category Administration' and I get:

can't read "form_vars": no such variable
while executing
"lang::util::localize ${form_vars}"
invoked from within

Is this because of a lack of en_GB tags or some other problem?

Collapse
2: Re: ACS Catagories (response to 1)
Posted by Gustaf Neumann on
Indexing for full text search has nothing to do with categories. Categories in the current CVS head is not functional, since a recent upgrade/merge http://fisheye.openacs.org/changelog/OpenACS/openacs-4/packages/categories?cs=MAIN:donb:20081109232922 of Don broke it.

To get categories working quickly, get the previous version of categories by doing

 cd openacs-4/packages
 rm -rf categories
 cvs -d:pserver:mailto:anonymous@cvs.openacs.org:/cvsroot co -D "09 November 2008" -d categories openacs-4/packages/categories
and restart the server. That's one of the dangers of using the head version.

Of course, fixing the head version would be good as well...

Collapse
3: Re: ACS Categories (response to 1)
Posted by Richard Hamilton on
Thanks Gustaf,

The original failure of categories was on the 5.4.3 distibution. I have installed the HEAD version and it didn't help.

I am now installing a complete system from a HEAD checkout to see if I can get the tsearch working.

I will install the older categories as you suggest in the 5.4.3 tarball based system to see if it works and will try to work out a fix if I can.

By the way - sorry about my spelling - it was a typo! (CatAgories!! :o|)

Regards
Richard

Collapse
4: Re: ACS Categories (response to 3)
Posted by Gustaf Neumann on
Maybe categories in the 5.4.3 tarball are broken as well! Background for my previous posting: I had a working version of categories, did an update to the current head version (including the mentioned change-set) and could reproduce the problem you had. Going back to the previous state (the version of the morning of "09 November 2008") fixed it again.
Collapse
5: Re: ACS Categories (response to 4)
Posted by Richard Hamilton on
You are a complete star!! 😊

I have put the 9th November Categories file tree back into the packages directory as you suggested without making any database changes and re-started the server.

Not only does the categories admin section now work properly, but now when I add pages to xowiki they are immediately indexed and the result is to be found in the txt table.

Perhaps a diffs between the HEAD version of Categories and the 9th November version will yield some useful information!

All working brilliantly now.

Thank you
Richard

Collapse
6: Re: ACS Categories (response to 4)
Posted by Denis Barut on
Hi,

I add this line at the end of the master.tcl in cadmin/ :


set form_vars [export_ns_set_vars form {locale form:mode form:id __confirmed_p __refreshing_p formbutton:ok} [ad_conn form]]

and it solve the problem of : can't read "form_vars": no such variable

I have another question about the permissions in xowiki.
We need to let people add new articles and allow them edit only the one they created.

Is that possible with the standard permissions/policies of xowiki ?

Thank for your answer.

regards
Denis

Collapse
7: Re: ACS Categories (response to 6)
Posted by Gustaf Neumann on
Concerning policies: you have to create your own policy, where one can give certain rights to the "creator". If you want to allow just the creator to edit an ::xowiki::Page, use

    Class Page -array set require_permission {
      ...
      edit               creator
      ...
    }
The newly created policy (e.g. policy6) should be loaded like the other policies and should be activated by the xowiki package parameter.
Collapse
8: Re: ACS Categories (response to 5)
Posted by Gustaf Neumann on
Concerning the categories: the head version is fixed again.