本文介绍了选项​​以编程方式更新DokuWiki的页面内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SOers!

我有在内容修改automatiozation条款某些问题的DokuWiki。我需要的是编程方式更新页面,在我的情况下,数据来源是文本文件,这将是正则表达式解析和输出将被插入的DokuWiki页面。

I am having some issues with DokuWiki in the terms of content modification automatiozation. My need is to update page programmatically, in my case the data source would be text file, that would be regex parsed and the output would be inserted into DokuWiki page.

截至这一刻,我还没有发现任何与此相关的功能,但我真的怀疑我只有再有需要这样的东西,所以invetning bycicle一个不是最好的方式在这里:)

Up to this moment, I have not found anything related to this feature, but I really doubt I am only one having need for such stuff, so invetning bycicle again is not a best way here :)

目前有东西在这个问题:

Currently there is something in this Question:

Acces在渲染的Dokuwiki插件的原始wiki页面内容

我的子问题是 - 如何使用它做的内容的修改?我不得不莫时间去通过整体的DokuWiki源$ C ​​$ C,所以我希望能有一些乐高积木,我可以简单地连在一起,使之发生W / O开发新的接口等。

My sub-Question is - How can I use it to do content modifications? I had mo time to go through whole dokuwiki source code, so I am hoping there are some lego blocks that I could simply attach together to make it happen w/o developing new interfaces etc.

非常感谢任何责任!

推荐答案

您有三个选择在这里:


  1. 修改页面内容在磁盘上direcly。所有的网页都在数据/ pagename.txt 作为原始文本文件。你不会有任何修订历史这样

  2. 使用XMLRPC API来访问和更新您的网页。请参见

  3. 使用dwpage命令行工具来结账,然后修改,然后再次签入您的pagedata。请参见

  1. modify page contents on disk direcly. all your pages are in data/pagename.txt as raw text files. you will not have any revision history this way
  2. use the XMLRPC API to access and update your pages. See http://www.dokuwiki.org/devel:xmlrpc
  3. use the dwpage command line tool to checkout, then modify, then checkin your pagedata again. See http://www.dokuwiki.org/cli#dwpagephp

这篇关于选项​​以编程方式更新DokuWiki的页面内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 02:11