Discussion:
Default page for namespace in index
Frank Siegert
2006-05-16 12:27:24 UTC
Permalink
For our purposes, I created a little patch for Dokuwiki, which allows you to
specify a default page to open, when somebody opens a namespace in the index
list. Furthermore, the patch displays the namespace titles in a nice way in
the index (capitalized words with spaces).

Together with the already existing option "useheading", these two changes make
the index a very nice navigation, especially when used in a template that
uses the index like a sidebar.

$conf['defaultindex'] = 'index';
$conf['useheading'] = 1;

Feel free to include the patch in Dokuwiki if you think it is useful (maybe
with an extra configuration option for the namespace-prettying).

Thanks for this nice code,
Frank
Martin Tschofen
2006-05-18 21:35:45 UTC
Permalink
How does this solution compare to these?
http://wiki.splitbrain.org/wiki:tips:namespaceindex

I like the idea as it would allow me to solve my previous meta data
question about namespaces but I don't know how this will fit in into
the current wiki plans. Perhaps Andi or Chris can address this.

...martin
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Frank Siegert
2006-05-21 11:17:39 UTC
Permalink
,---- Martin Tschofen wrote:
| How does this solution compare to these?
| http://wiki.splitbrain.org/wiki:tips:namespaceindex

I was not aware of these solutions and don't know, how they compare to mine.

| I like the idea as it would allow me to solve my previous meta data
| question about namespaces but I don't know how this will fit in into
| the current wiki plans. Perhaps Andi or Chris can address this.
`----

That's why I sent the patch to this list. If they are interested in including
this, I'd also be glad that I don't have to apply the patch after the next
wiki upgrade ;-)
If not, no problem.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Guy Brand
2006-05-19 19:54:38 UTC
Permalink
Post by Frank Siegert
For our purposes, I created a little patch for Dokuwiki, which allows you to
specify a default page to open, when somebody opens a namespace in the index
That's what "globalstart" does. Look for it in the wiki, the changes
are really simple. Anthony Caetano has worked on a more complete
patch which tweaks also the search and breadcrumbs.
--
bug
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Loading...