0

I'm trying to display content from one wiki page in redmine in my welcome/index file.

I've tried linking pages with [[foo]] (which I have found out only works in the wiki itself) and !{{include(projectname:stuff)}}, but when I try to use this, my redmine only displays it as plain text.

<div class="splitcontentright">
 <div class="news box">
  <h3><%=("News")%></h3>
    !{{include(MyWikiPage:MyArticle))}}
    <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
 </div>
</div>

Is this the wrong method? Is there another way to achieve what I'm trying to do?

4

1 回答 1

0

在浏览完 redmines 代码后,我找到了解决方案。

而不是写

!{{include(MyWikiPage:MyArticle)}}

你必须写:

    <%= textilizable "{{include(Project:Article)}}" %>

这调用了 textilizable 函数,让您可以在任何地方使用 wiki 宏。

于 2016-01-11T12:56:51.453 回答