你能限制 confluence 2.9 中最近更新的宏中的项目数量吗?

发布于 2024-08-20 05:48:39 字数 95 浏览 1 评论 0原文

我在 confluence 2.10 中看到,有一个 max 和 maxresults 参数,但我在 2.9.1 或更低版本中没有看到这些参数。是否有办法限制这些版本中的结果?

i see in confluence 2.10, there is a max and maxresults parameter but i dont see these parameters in 2.9.1 or below. Is there anyway to limit the results in these versions ?

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

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

发布评论

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

评论(1

树深时见影 2024-08-27 05:48:39

2.9 中没有此类参数,您可以使用 {rss} 宏并显示最近更新内容的 Confluence Feed,但您必须传输 url 内的用户名和密码,加上生成的页面只需显示页面标题列表(没有空格,没有作者或日期)或页面的完整差异/内容(有点吵)。

限制显示结果数量的更实用方法是使用 GET 参数 maxRecentlyUpdatedPageCount 来控制 {recently-updated} 宏行为。

为此,您可以使用 {redirect} 宏(位于

{recently-updated}

{redirect:location=http://confluence.example.come/display/SPACE/Page?redirect=false&maxRecentlyUpdatedPageCount=50}

请注意,它会显示一个有点烦人的 内容信息面板,警告您有关重定向的信息。如果您想摆脱它,请使用 {span} 宏 (免费插件),并将页面的标记更改为:

{recently-updated}

{span:style=display:none;}
{redirect:location=http://confluence.example.come/display/SPACE/Page?redirect=false&maxRecentlyUpdatedPageCount=50}
{span}

There's no such parameters in 2.9, you could use the {rss} macro and display a confluence feed of recently updated content, but you would have to transmit a username and password inside the url, plus the resulting page will either simply display the list of page title (no space, no author nor date) or the complete diff/content for the page (a bit noisy).

A more practical way of limiting the number of results shownwould be to use the GET parameter maxRecentlyUpdatedPageCount which control the {recently-updated} macro behaviour.

In order to do that, you could use the {redirect} macro (it's in a free plugin) on your page. Supposing your page is located at http://confluence.example.come/display/SPACE/Page, its source will look like (for 50 recently update items) :

{recently-updated}

{redirect:location=http://confluence.example.come/display/SPACE/Page?redirect=false&maxRecentlyUpdatedPageCount=50}

Note that it will display a slightly annoying information panel, warning you about the redirect. If you want to get rid of it, get your hands on the {span} macro (free plugin as well), and change the markup of the page to :

{recently-updated}

{span:style=display:none;}
{redirect:location=http://confluence.example.come/display/SPACE/Page?redirect=false&maxRecentlyUpdatedPageCount=50}
{span}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文