Forum OpenACS Development: Re: Re: xoWiki index page

Collapse
4: Re: Re: xoWiki index page (response to 3)
Posted by Jon Griffin on
It should look like this
- show
    index
    glenwood springs.
- personal
    index
- newsletter
    index

Collapse
Posted by Gustaf Neumann on
ok: show, personal, and newsletter are your categories.

If you do not want to show en:index in the categories, don't assign any category to index. If you want to have it e.g. in every category, you can assign every category to en:index and it will appear everywhere (requires to allow multiple assignments in the category mapping). Is this what you want?

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