Trac,如何分层组织页面? [英] Trac, how to organize pages hierarchically?
问题描述
我使用 trac 来管理我的项目,并且我希望像trac项目一样组织wiki页面. ,即按类别,子类别等.trac网站上的 TitleIndex 页可以很好地说明结果我想要获得.
I use trac to manage my projects and I'd like to organize wiki pages the same way trac project does, i.e. by category, subcategory, etc. TitleIndex page on trac site gives a good explanation of the result I want to obtain.
我该如何实现?
推荐答案
首先,只需修改URL,然后按Enter键,就可以创建分层的Wiki页面.也可以先创建一个Wikilink,然后按红色链接.
First of all, you can create hierarchically wiki pages, just by modifying the url, and press enter. It is also possible to create a wikilink first, and then press the red link.
例如,当您的追踪主页为http://trac.server.local/project/wiki
时,您可以在URL的末尾键入/customers
,然后按Enter.因此,新的URL为http://trac.server.local/project/wiki/customers
.您将获得一个几乎空白的页面,其中包含一个按钮Create this page
.按该按钮创建该页面.之后,您还可以在下一级创建页面,例如
For example, when your trac home page is http://trac.server.local/project/wiki
, you can type /customers
at the end of the url, and press enter. So the new url would be http://trac.server.local/project/wiki/customers
. You will get an almost empty page with a button Create this page
. Press that button to create that page. After that you can also create pages at the next level, for example
-
http://trac.server.local/project/wiki/customers/microsoft
-
http://trac.server.local/project/wiki/customers/google
-
http://trac.server.local/project/wiki/customers/apple
http://trac.server.local/project/wiki/customers/microsoft
http://trac.server.local/project/wiki/customers/google
http://trac.server.local/project/wiki/customers/apple
要生成索引,请使用 HierWikiPlugin .在/wiki/customers
页面上,我只输入
To generate an index, I use the HierWikiPlugin. On the /wiki/customers
page, I enter just
[[SubWiki(customers/,1)]]
以获取客户下方所有子页面的列表.要同时查看这些子页面的子页面,请增加级别,例如
to get a list of all subpages below customers. To also see the subpages of those subpages, increase the level, for example
[[SubWiki(customers/,2)]]
这篇关于Trac,如何分层组织页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!