Leadership customization of control pages

I would like to understand how to set up various pages on the Liferay control screens. For instance:

  • I would like to add some fields to images that are uploaded to the image gallery
  • I would like to add new types of fields that I can use when creating new structures (for example, add the field type "phone number" so that I can add it to new structures that I would like to create).
  • Another example would be setting up a web content search page and adding / removing fields and setting and viewing it.

Any pointers would be helpful since I read most of the development material for Liferay, but I could figure out where to start, for example, to do such things (without changing the basic Liferay files).

+4
source share
1 answer

I do not think that 2) can be done without changing Liferay itself (for example, correcting the source code).

You can customize all embedded JSP pages using so-called "JSP Hooks". I did this to set up pages for user administration (basically removing confused fields from them).

The main idea is to provide a modified version of the JSP main page. After deploying the hook, Liferay will replace the embedded page with the customized version. When the hook is not expanded, Liferay reactivates the original page.

The following pages should have enough information to get 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 are also viewing the Liferay forum.

+3
source

Source: https://habr.com/ru/post/1333785/


All Articles