Liferay Hooks 插件文件夹
我正在使用 Liferay 6 版本。 由于 Liferay 的重要性,我正在尝试学习它。
我很喜欢 Liferay Hooks 的概念,为此我关注这个网站:
http://kamalkantrajput.blogspot.com/2009/05/using-hooks-in-liferay-for-customizing.html
对此,作者在下面提到了这一点:
转到插件/挂钩创建一个具有任意名称的文件夹。例如 asset-publisher-hook
请告诉我在哪里可以找到插件文件夹? 因为在Liferay Tomcat中,我发现了6个名为plugins的文件夹,并且在此下没有文件夹挂钩。
请指导我。
I am using Liferay 6 version.
I am trying to Learn Liferay, due to its importance.
I am into the Liferay Hooks concept, for this I am following this site:
http://kamalkantrajput.blogspot.com/2009/05/using-hooks-in-liferay-for-customizing.html
In this the author mentions about this below:
Go to plugins/hooks create a folder with any name. eg asset-publisher-hook
Please tell me where can i find the plugins folder?
Because inside the Liferay Tomcat, I found 6 folders with the name plugins and no folder hooks under this .
Please guide me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能还想阅读 Liferay Wiki 中的文档:
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins
简而言之:一旦您创建了钩子插件(如 adarshr 所描述)您可以像部署任何其他 portlet 一样简单地部署该 portlet。
如果您想删除该挂钩,请确保在 Tomcat 运行时取消部署它。否则 Liferay 将不会收到通知,并且原始 JSP 将不会恢复。
只需删除 Tomcat webapps 文件夹中的 portlet 目录即可完成取消部署。
You might also want to read the documentation in the Liferay Wiki:
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins
In a Nutshell: once you have created the hook plugin (as described by adarshr) you can simply deploy the portlet like any other portlet.
If you want to remove the hook, make sure to undeploy it while Tomcat is running. Otherwise Liferay will not be informed about it and the original JSPs won't be restored.
Un-deploying can be done by simply deleting the portlet's directory in the Tomcat webapps folder.
您需要安装插件 SDK,可以从 http://www.liferay.com/downloads 下载。在下拉列表中选择“插件 SDK”,然后单击“下载”。
解压后,在 hooks 文件夹中打开命令提示符。然后执行命令
create asset-publisher-hook "Asset Publisher Hook"
,它将为您创建基本的 hooks 项目。You need to install the Plugins SDK which can be downloaded from http://www.liferay.com/downloads. Select "Plugins SDK" in the dropdown and click download.
Once you extract it, open a command prompt in the hooks folder. Then you execute the command
create asset-publisher-hook "Asset Publisher Hook"
and it will create the basic hooks project for you.