The interwiki "this>" should work for the current wiki.
wikiroot/en/doku.php wikiroot/de/doku.php wikiroot/fr/doku.php
e.g.
default dokuwiki,
$conf['datadir'] = $conf['savedir'].'pages';
for multi-lingual dokuwiki (not tested)
Cheers,
Chris
hi all,
I'm trying to define interwiki "tags" for language namespaces. I have first tried:
de de/ fr fr/
which is perfect except when on the german page you write "french version is at [[fr>page]] which points finally to id=/de/fr/page Relative links... turned to absolute by using:
de /de/ fr /fr/
doesn't work because the right part is now an absolute link in the local webserver (so generally outside the wiki).
Reading inc/parser/xhtml.php I saw there is no placeholder for interwiki which corresponds to dokuwiki itself. So I have added
$url = str_replace('{BASE}',DOKU_BASE,$url);
to have {BASE} in interwiki.conf expanded to DOKU_BASE url. Thus I
tried:
de {BASE}/de/{NAME} fr {BASE}/fr/{NAME}
but this fails also, urls are
http://myserver/~bug/dokuwiki//de/page http://myserver/~bug/dokuwiki//fr/page
which only works if rewrites are on. So I also tried:
de {BASE}doku.php?id=/de/{NAME} fr {BASE}doku.php?id=/fr/{NAME}
but this ends up with the same links as above (I don't really
understand why).
Any suggestion on how I could achieve absolute working urls inside dokuwiki using interwiki links? This would help for the multilingual work in progress.
Cheers,
-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist