2

我正在尝试将自定义标签插入页面

这应该工作吗?

<after css:content-children="#viewlet-below-content-body">
   <a href="@@historyview">History</a>
</after>

似乎只有替换允许我插入/替换自定义标签

<replace css:content-children="#viewlet-below-content-body">
   <a href="@@historyview">History</a>
</replace>
4

2 回答 2

2

Diazo 不支持只有 content/content-children 的 before/after 规则,您只能删除或替换。也许在未来的版本中。

于 2012-04-21T15:11:55.883 回答
1

如何将您自己的标签附加到主题(同时复制/替换孩子):

<append css:theme="#theme-id-for-viewlet-below-content-body">
   <a href="@@historyview">History</a>
</append>
于 2012-04-22T17:28:29.697 回答