Forum OpenACS Development: Re: Re: Re: Re: xoWiki index page

Collapse
Posted by Jon Griffin on
The problem is if you want a mandatory category for all the other pages, if you edit en:index it also requires a category.

So from an end user point of view, I can either require the author to categorize or make it optional and hope that they remember. If they don't remember then it doesn't show up in the index, and guess who gets called ;(

Collapse
Posted by Gustaf Neumann on
you seem to have a strange requirement. i would recommend to make a custom version of xowiki/www/portlets/categories.tcl with a different name and add the following two lines after the lappend categories $category_id (around line 46)
  set itemobj [Object new -set name en:index -set title MyTitle -set prefix "" -set suffix ""]
  $cattree(0) add_to_category -category $c -itemobj $itemobj -orderby title
this adds for each category an entry en:index with the specified name and title into the category tree.

hope this helps