dokuwiki

Inline Code in DokuWiki

我的梦境 提交于 2020-01-12 04:06:49
问题 I'm looking for a way to include code as part of a paragraph in DokuWiki like I can by adding backtick escapes in StackOverflow like _so_ . Simply adding <code>bla</code> puts code on it's own line. 回答1: You probably want to use ''%%here is code%%'' . This formats it in monospace ( '' ) and prevents any interpretion of possible wiki markup ( %% ). 回答2: I was able to find an answer to my own question. Add quotes around the in-text code ''like this'' . Simple, short, and works great. 来源: https:

dokuwiki: how can I hide media manager link from non logged in users

落花浮王杯 提交于 2020-01-03 10:57:08
问题 In dokuwiki how can I hide "media manager" link or any other link on the top, from non logged in users? 回答1: one way is changing the template like this: in /lib/tpl/dokuwiki/tpl_header.php: <?php if ($INFO['isadmin']) { tpl_action('recent', 1, 'li'); //recent changes tpl_action('media', 1, 'li'); //media manager tpl_action('index', 1, 'li'); //sitemap } ?> 回答2: If no user is logged, $INFO["userinfo"] is empty in /lib/tpl/dokuwiki/tpl_header.php replace tpl_toolsevent('sitetools', array( tpl

Upload file using curl command line in dokuwiki

若如初见. 提交于 2019-12-25 05:00:16
问题 I am trying to find a way to do this. So far I have been able to access pages thanks to the cookie parameter: curl -v --cookie cookies.txt --cookie-jar cookies.txt --user-agent Mozilla/4.0 --data "u=login&p=passwd" http://wiki/doku.php?id=start&do=login and then curl --cookie cookies.txt http://wiki/doku.php?id=info To upload a file I am supposed to get the form parameter on the php page. I don't exactly know what I am looking for : curl --form "file=@z.xml" --cookie cookies.txt "http://wiki

Dokuwiki with LDAP error: User authentication is temporarily unavailable

☆樱花仙子☆ 提交于 2019-12-23 16:17:14
问题 I'm trying to setup Dokuwiki with LDAP in my local computer. The Dokuwiki version is 2014-05-05 "Ponder Stibbons" Authentication settings authtype: authldap Plugin Authldap (bundled plugin) settings plugin»authldap»server: localhost plugin»authldap»port: 10389 plugin»authldap»usertree: ou=People,o=sevenSeas plugin»authldap»grouptree: ou=Groups,o=sevenSeas plugin»authldap»userfilter: plugin»authldap»groupfilter: plugin»authldap»version: 3 plugin»authldap»binddn: uid=admin,ou=system plugin

How to escape “code” tag in an XML code block in DokuWiki

爷,独闯天下 提交于 2019-12-12 20:18:19
问题 In a DokuWiki page, I want to show part of an XML file as a highlighted syntax block using the <code xml> tag. The XML also contains a <code></code> tag, so DokuWiki detects it as the end of the block. For example: <code xml> <?xml version="1.0" encoding="UTF-8"?> <root> <code>Some data</code><!-- The sintax highlighted block breaks here --> </root> </code><!-- This one is actually the closing tag --> Is there a way to escape the </code> tag? 回答1: Use the file tag instead: <file xml> <?xml

Acces the raw wiki page contents in a Dokuwiki Render Plugin

a 夏天 提交于 2019-12-12 02:43:48
问题 I created a plugin and its basic functionalities are working well. It returns always testing as you can see in the method document_end() . But how can I access the plain, raw wiki page content? This is my rawcontent.php file in the corresponding plugin folder. 回答1: I got it. After a deep serach in the code of Dokuwiki I discovered rawWiki() . It returns the raw content of a page, the current page name/id is a "global" "constant" named $ID . Solution: global $ID; return rawWiki($ID); 来源: https

yum 安装 epel-release

大城市里の小女人 提交于 2019-12-11 10:34:50
一·首先安装是CentOS 7.0的源。 yum install epel-release #rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 查看可安装的包 yum list --enablerepo=remi --enablerepo=remi-php56 | grep php 开始安装 yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof 查看版本 php --version 二·#yum list httpd 安装httpd 三·下载并解压dokuwiki程序包(去网上找源码包稳定版) wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz tar -zvxf dokuwiki-stable.tgz 把解压好的放到/var/www/html/wiki mv dokuwiki-2017-02-19e/ /var/www/html

Dokuwiki Proxy: Could not connect Permission denied (13)

大憨熊 提交于 2019-12-11 04:11:53
问题 Dokuwiki responses with Could not connect to <proxy> Permission denied (13) when I try to use the Wiki Upgrade Plugin. Also the Extension Manager prints The plugin repository could not be contacted. Make sure your server is allowed to contact www.dokuwiki.org and check your proxy settings. [Retry] I'm sure that the proxy settings are correct. If I try to access www.dokuwiki.org with curl curl https://download.dokuwiki.org -L or wget wget https://www.dokuwiki.org --2016-11-15 15:13:08-- https:

DokuWiki with SVN: how and what should be under source control

隐身守侯 提交于 2019-12-08 05:17:51
问题 I want to store my documentation under SVN source control. In DokuWiki settings there is Directory for saving data '.../apps/dokuwiki/data' DokuWiki stores all data inside text files under '.../apps/dokuwiki/data' folder. There are many stuffs there including indexes caches etc. It seems that I only need the 'pages' folder. How can I move the 'pages' folder inside my SVN folders and configure the DocuWiki to use pages from there? 回答1: $conf['datadir'] can be used in conf/local.php to set the

Converting XML to plain text - how should I ignore/handle whitespace in the XSLT?

自古美人都是妖i 提交于 2019-11-28 03:12:12
I'm trying to convert an XML file into the markup used by dokuwiki, using XSLT. This actually works to some degree, but the indentation in the XSL file is getting inserted into the results. At the moment, I have two choices: abandon this XSLT thing entirely, and find another way to convert from XML to dokuwiki markup, or delete about 95% of the whitespace from the XSL file, making it nigh-unreadable and a maintenance nightmare. Is there some way to keep the indentation in the XSL file without passing all that whitespace on to the final document? Background: I'm migrating an autodoc tool from