0

是否可以在内容插件中获取当前页面<jdoc:include type="component" />区域的内容,并将其写入 html 文件fwrite($ourFileHandle, $component);

4

2 回答 2

0

&tmpl=component您可以通过附加到资源 URL来提取组件内容 。

例子:

http://example.com/index.php?option=com_yourcomponent&view=viewname&tmpl=component
于 2013-02-19T16:44:49.703 回答
0

是的,您有两个事件 onBeforeContentPrepare() 和 onAfterContentPrepare() 都保存组件的内容,您可以从那里登录到磁盘甚至更改内容。

于 2013-02-20T07:20:45.987 回答