Liferay管理页面定制

发布于 2024-10-09 21:13:54 字数 325 浏览 0 评论 0原文

我想了解如何在 Liferay 管理屏幕中自定义不同的页面。例如:

  1. 我想向正在上传到图片库的图像添加一些字段
  2. 我想添加在创建新结构<时可以使用的新字段类型/em> (例如,添加“电话号码”字段类型,以便我可以将其添加到我想要创建的新结构中)。
  3. 另一个例子是自定义网络内容搜索页面并添加/删除字段并自定义其外观和内容。感觉。

任何指示都会有帮助,因为我已经阅读了有关 Liferay 开发的大部分内容,但可以弄清楚我们从哪里开始做类似的事情(无需更改核心 Liferay 文件)

I'd like to understand how can I customize different pages in the Liferay management screens. For example:

  1. I'd like to add a few fields to images that are being uploaded to the Image Gallery
  2. I'd like to add new field types that I can use when creating new structures (for example, add a "phone number" field type so I can add it to new structures I'd like to create).
  3. Another example would be to customize the Web Content search page and add/remove fields and customize it's look & feel.

Any pointers would be helpful, as I've read most of the stuff about developing for Liferay but could figure our where to start with doing stuff like that (without changing core Liferay files)

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

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

发布评论

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

评论(1

看轻我的陪伴 2024-10-16 21:13:54

我不认为2)可以在不改变Liferay本身的情况下完成(例如修补源代码)。

您可以使用所谓的“JSP Hooks”自定义所有内置 JSP 页面。我这样做是为了自定义用户管理页面(主要是从中删除令人困惑的字段)。

基本思想是提供核心 JSP 页面的修改版本。部署钩子后,Liferay 将用定制版本替换内置页面。当钩子被取消部署时,Liferay 再次激活原始页面。

以下页面应该包含足够的信息来帮助您入门:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins
http://www.liferay.com /community/wiki/-/wiki/1071674/Custom+Fields+and+JSP+Hooks
http://wikis.sun.com/display/websynergy/Customizing +JSPs+using+hooks+plugin

确保您也在 Liferay 论坛中进行搜索。

I don't think 2) can be done without changing Liferay itself (e.g. patching the source code).

You can customize all built-in JSP pages using so called "JSP Hooks". I have done that to customize the pages for the user administration (mainly removing confusing fields from them).

The basic idea is to provide a modified version of the core JSP page. Upon deploying the hook, Liferay will replace the built-in page with the customized version. When the hook is undeployed, Liferay activates the original page again.

The following pages should have enough information to get you started:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins
http://www.liferay.com/community/wiki/-/wiki/1071674/Custom+Fields+and+JSP+Hooks
http://wikis.sun.com/display/websynergy/Customizing+JSPs+using+hooks+plugin

Make sure you search in the Liferay forum as well.

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