DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:webdav

This is an old revision of the document!


WebDAV Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin WebDAV server for DokuWiki

Last updated on
2020-11-27
Provides
CSS/JS-only
Repository
Source

Tagged with !experimental, share, webdav

This plugin WebDAV server support for DokuWiki using Sabre DAV plugin (https://sabre.io/dav/).

With this plugin it's possible to explore, modify and add elements (pages 1) and media files) in DokuWiki using a WebDAV client (such as Dolphin, Nautilus, Explorer, etc.).

By default WebDAV plugin expose this virtual directory:

  1. pages, DokuWiki pages
  2. media, Media files
  3. odt, DokuWiki pages in ODT format (require odt plugin)

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Features

Enabled plugins and collections

Collections

  1. pages
  2. media
  3. odt (require odt plugin)

Plugins

  1. Browser
  2. Mount
  3. Locks
  4. TemporaryFileFilter
  5. DokuWiki (expose extra properties, see below)

Events

WebDAV plugin add additional DokuWiki events for add extra plugins or collections 2).

Event Description
PLUGIN_WEBDAV_COLLECTIONS Add new collection
PLUGIN_WEBDAV_PLUGINS Add new plugin

Pages collection

Client Create Edit Delete Rename
Dolphin yes yes yes no
Nautilus yes yes yes no
DAVFS2 yes yes yes no
Cadaver yes yes yes no
Windows yes yes yes no

:!: WebDAV plugin follow the pagename naming convention for directory (namespace) and files (page).

Windows users may experience problems with files and directories containing spaces and uppercase / lowercase in the name.

Media collection

Client Create Edit Delete Rename
Dolphin yes yes yes no
Nautilus yes yes yes no
DAVFS2 yes yes yes no
Cadaver yes yes yes no
Windows yes yes yes no

WebDAV plugin preserve the original filename (space and upper/lower case). In media manager all files are viewed in standard DokuWiki format.

Custom properties

WebDAV plugin expose additional properties:

  1. dw:id: Page ID
  2. dw:title: Page Title
  3. dw:description: Page description/summary
  4. dw:tag: tag plugin tags

It's possible to view this properties using PROPFIND method:

PROPFIND http://dokuwiki.example.org/lib/plugin/webdav/server.php/pages/wiki/syntax.txt
<?xml version="1.0" encoding="utf-8" ?>
<d:propfind xmlns:d="DAV:">
   <d:prop xmlns:dw="https://dokuwiki.org/ns">
     <d:getlastmodified/>
     <d:getcontentlength/>
     <d:getcontenttype/>
     <d:resourcetype/>
     <d:getetag/>
     <d:displayname/>
     <dw:id/>
     <dw:title/>
     <dw:description/>
     <dw:tag/>
   </d:prop>
 </d:propfind>
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:dw="https://dokuwiki.org/ns">
    <d:response>
        <d:href>
            /wiki/lib/plugins/webdav/server.php/pages/wiki/syntax.txt
        </d:href>
        <d:propstat>
            <d:prop>
                <d:getlastmodified>
                    Sun, 20 May 2018 22:27:43 GMT
                </d:getlastmodified>
                <d:getcontentlength>
                    22597
                </d:getcontentlength>
                <d:getcontenttype>
                    text/plain
                </d:getcontenttype>
                <d:resourcetype/>
                <d:getetag>
                    &quot;2fd28b7174c545bdb35da008a8208611b92663f3&quot;
                </d:getetag>
                <d:displayname>
                    Formatting Syntax
                </d:displayname>
                <dw:id>
                    wiki:syntax
                </dw:id>
                <dw:title>
                    Formatting Syntax
                </dw:title>
                <dw:description>
                    Formatting Syntax
 
DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing
                </dw:description>
                <dw:tag>
                </dw:tag>
            </d:prop>
            <d:status>
                HTTP/1.1 200 OK
            </d:status>
        </d:propstat>
    </d:response>
</d:multistatus>

Configuration and Settings

Config Default Description
remote 1 Allow remote access to WebDAV
remoteuser !!not set!! See remoteuser config
fix_msoffice_lockroot 0
show_button 0 Show WebDAV button in Page Tools with WebDAV URL

Known Bugs and Issues

In pages collection, Windows users may experience problems with files and directories containing spaces and uppercase / lowercase in the name.

ToDo/Wish List

  1. Add “rename” support
  2. Increase stability for Windows Explorer client

FAQ

Discussion

Development

Build Status

ChangeLog

Main branch
Develop branch

Bugs / Feature Requests

Please report bugs or feature requests at the Bug tracker.

1)
normal DokuWiki page file
2)
see action.php and server.php
plugin/webdav.1606498555.txt.gz · Last modified: 2020-11-27 18:35 by lotar

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki