Liferay Hooks 插件文件夹

发布于 2024-12-23 03:06:59 字数 556 浏览 2 评论 0原文

我正在使用 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.

enter image description here

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

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

发布评论

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

评论(2

当梦初醒 2024-12-30 03:06:59

您可能还想阅读 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.

懵少女 2024-12-30 03:06:59

您需要安装插件 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文