[dokuwiki] Re: Namespace confusion

  • From: "Daniel Mitchell" <DanielMitchell@xxxxxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 13 Mar 2006 11:59:46 -0700

> I too had that issue and so I went to the red link in the breadcrums
> and noticed it was looking for ns1:index .. which was not there, so I
> created the index page like it wanted.
 
 Here's a diff between the default template.php and the one we're using
here -- in hierarchical breadcrumbs mode, it will let you have:

 Start.txt  
 [no project.txt in the root namespace]
 Project : start.txt
 Project : other.txt

 And it'll then give you the breadcrumbs for

 Start | project | other
  
 Which will point at the main start page, the start page in the project
namespace, and the 'other' page in the project namespace. I'm not quite
sure if this is what you're after, but it's what we wanted here:

[root@NoteBookTJH inc]# diff template.php.orig template.php
586c586,595
<     }else{
---
>     } else if($conf['youarehereloose'] == 1 &&
file_exists(wikiFN($page.':'.$conf['start']))){
>       if($conf['useheading']){
>         $pageName = p_get_first_heading($page.':'.$conf['start']);
>         $partName = $pageName;
>       }else{
>         $pageName = $page.':'.$conf['start'];
>         $partName = $part;
>
tpl_link(wl($page.':'.$conf['start']),$partName,'title="'.$pageName.'"')
;
>       }
>     } else {

 Set 'youarehereloose' in local.conf and it'll enable this. 

 I'm not sure if this is the same as the globalstart patch or not, this
is only for the breadcrumbs stuff.

 -- dan
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: