TWiki 以编程方式添加新主题

发布于 2024-08-09 04:45:05 字数 223 浏览 5 评论 0原文

如何以编程方式向 TWiki 添加新主题?

我已经安装了一个可用的 TWiki (http://twiki.org/),一切正常。

我需要找到一种通过命令行以编程方式创建和添加新主题的方法。

有什么想法可以实现这一点吗?

谢谢!

d.

How can I add a new topic to TWiki programmatically?

I've got a working TWiki (http://twiki.org/) installation, everything works fine.

I need to find a way to create and add new Topics through the command line, programmatically.

Any ideas how this can be accomplished?

Thanx!

d.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆依然 2024-08-16 04:45:05

我所做的是

  • 查看一些 wiki 页面(/data/Main/.txt 中的文件)来找出文件/文本格式(几乎与您在浏览器中看到的一样,前面是一行元信息)
  • 使用 Perl 脚本生成该文本格式,内容基于数据库或某些 Excel 中的数据,
  • 在 Windows 上使用 putty 的 pscp 将文件复制到适当的位置

What I did was

  • take a look at some wiki pages (files in <twiki-home>/data/Main/<PageName>.txt) to figure out the file/text format (pretty much what you see in the browser, preceded by one line of meta info)
  • generate that text format with a perl script
    with content based on data from a DB or some Excel
  • copy the files to the apropriate location using putty's pscp on windows

盛装女皇 2024-08-16 04:45:05

我认为使用 TWiki 脚本是一种更“干净”的方式,因为您不必担心 TXT 文件中的元数据或更新 .changes 文件。

只需使用 wget 使用“保存”脚本进行 POST 调用(请参阅文档在这里

I think using TWiki scripts is a more "clean" way, as you wouldn't have to worry about metadata in the TXT file or update the .changes file.

Just use wget to make a POST call using the 'save' script (see documentation here)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文