xref: /plugin/combo/action/directorylayout.php (revision c3437056399326d621a01da73b649707fbb0ae69)
1<?php
2
3if (!defined('DOKU_INC')) die();
4require_once(__DIR__ . '/../ComboStrap/PluginUtility.php');
5require_once(__DIR__ . '/../ComboStrap/LinkUtility.php');
6
7/**
8 * Set the home of the web site documentation
9 */
10class action_plugin_combo_directorylayout extends DokuWiki_Action_Plugin
11{
12
13    /**
14     * @param Doku_Event_Handler $controller
15     */
16    function register(Doku_Event_Handler $controller)
17    {
18
19        $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'set_home', array());
20        $controller->register_hook('MEDIAMANAGER_STARTED', 'BEFORE', $this, 'set_home', array());
21        $controller->register_hook('DETAIL_STARTED', 'BEFORE', $this, 'set_home', array());
22    }
23
24    /**
25     *
26     * @param Doku_Event $event
27     * @param $params
28     * The path are initialized in {@link init_paths}
29     */
30    function set_home(Doku_Event $event, $params)
31    {
32        // See also: https://www.dokuwiki.org/devel:preload
33//        global $conf;
34//        $conf['mediadir']="D:/dokuwiki/website/media";
35//        $conf['datadir']="D:/dokuwiki/website/pages";
36    }
37
38
39}
40