Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
use namespace:start as the default page of the whole wiki
Avatar
tomzero #1
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: use namespace:start as the default page of the whole wiki
Dear all,

this may have been asked before, but I couldn't find an answer.

I have two namespaces: public and private and I would like to make public:start the default page of my DokuWiki. This means: navigating to https://mywiki.mydomain.tld redirects to https://mywiki.mydomain.tld/doku.php/public:start

I can do this with a .htaccess file, but Dokuwiki still considers start (i. e. start in the root namespace) as the starting page and links the top left Logo / heading in the navigation bar (and possibly further elements) to it.

Is there a configuration setting for this?

Thanks in advance.
Avatar
virk #2
Member since Aug 2008 · 546 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
Try "start" in the configuration of your dokuwiki. For example just add "public" there (if public is a page)
Avatar
tomzero #3
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
start is already set in the config. What I am trying to do is to use public:start instead of start as the "homepage" of DokuWiki. I don't want to make use of the root namespace.
Avatar
MartinR #4
Member since Jul 2015 · 91 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
I use the vector template (to make it look like wikipedia) so these instructions are an inspiration, not a guide!

Click on the sitemap and expand the wiki section:
wiki
    ebook
    dokuwiki
    ebook
    navigation
    site_notice
    syntax
    welcome

Go to navigation.  On my machine it contains the line:
  * [[:start|Main Page]]

You can then edit it to be whatever you want.  Unfortunately though clicking on the DW logo will still take you to the top-level start.txt.  I hope that is of some use.
Avatar
pop #5
Member since Nov 2016 · 27 posts
Group memberships: Members
Show profile · Link to this post
The include plugin (https://www.dokuwiki.org/plugin:include) might come close:

Start the :start page with
  {{page>public:start}}
and add the appropriate flags to make it appear that you are actually on that page.
Avatar
tomzero #6
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED]
I finally solved it by myself:

1. Enable HTML rendering in the config

2. Put this html into :start

<html><script>window.location.replace("https://mywiki.mydomain.tld/doku.php/public:start/");</script></html>

Granted, this utilizes JavaScript, but it works for my purpose.

Thanks to everybody for your support.
Avatar
Digitalin #7
Member since Feb 2014 · 184 posts
Group memberships: Members
Show profile · Link to this post
Hi,

The redirect plugin (the one I know) can be usefull for this  purpose or another one tagged with redirect (22 entries).

The configuration setting : htmlok presents a security risk as explained in the doc.
Avatar
tomzero #8
Member for 2 weeks · 4 posts
Group memberships: Members
Show profile · Link to this post
Quote by Digitalin:
The redirect plugin (the one I know) can be usefull for this  purpose or another one tagged with redirect (22 entries).
Thank you, I will check that. I would prefer server-side redirects.

The configuration setting : htmlok presents a security risk as explained in the doc.
We use the wiki to distribute a user manual and are just two editors. So, this seems not to be a problem in our case.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-08-21, 01:18:47 (UTC +02:00)