有没有办法在表中显示{children},它们都是一列,每行一个?
说,我有子页面a,b和c,并希望它们显示在包含页面名称,作者和其他内容的表格中:
| A |丹尼斯| 40 |
| B |亚历| 43 |
| C |未知| 2 |
答案 0 :(得分:3)
您是否尝试过报告插件
结帐 http://wiki.customware.net/repository/display/AtlassianPlugins/Reporting+Plugin
例如使用以下配置
{report-table}
{local-reporter:page:children}
{text-sort:page:title}
{local-reporter}
{report-column:title=Title}{report-info:page:title}{report-column}
{report-column:title=Author}{report-info:page:creator}{report-column}
{report-table}
一旦你开始使用它,相当有趣。
弗朗西斯
答案 1 :(得分:0)
您也可以使用{metadata-report}
{metadata-report:Page,Author}
{metadata-report}用于显示使用Metadata plugin存储在网页上的元数据,还可用于显示内容属性,包括:Page,Author,Last Changed By,Last Time Changed,Date,Time,Time Created,Posted,Space,Parent
您还可以将根页面设置为从中开始,并将所有基本页面元数据拉出到表格中。例如:
{metadata-report:Page,Author,Last Changed By,Last Time Changed,Date,Time,Time Created,Posted,Space,Parent|root=somepagewithchildren|pages=@descendants}
这可以包含在{table-filter}
和{table-plus}
宏中以进行排序。
{table-filter:userfilter=Page,Author,Time Created}
{table-plus:columnTypes=S,S,D"dd MMM, yyyy hh:mm"}
{metadata-report:Page,Author,Time Created}
{table-plus}
{table-filter}