Adding portlet in control panel


Open the liferay-portal.xml and add the following these 2 entries.

    1. <control-panel-entry-category>content </control-panel-entry-category>(Mandatory)
    2. <control-panel-entry-weight>2.0 </control-panel-entry-weight>(Mandatory)
    3.<control-panel-entry-class>  your-custom-class </control-panel-entry-class>(Optional)

1. Category is nothing but that which section your portlet should be appear in the control panel. If you see   the below screen shot it shows 4 options
      my,content,portal,server

2. Low value it appears higher in the section

3. It is optional , If you didn't specify this entry it will take default class which defined in the portal.properties

    #
    # Set the name of a class that implements
    # com.liferay.portlet.ControlPanelEntry. This class denotes the default
    # value of of the element "control-panel-entry-class" in liferay-portlet.xml
    # and is called by the Control Panel to decide whether the portlet should be
    # shown to a specific user in a specific context.
    #
    control.panel.default.entry.class=com.liferay.portlet.DefaultControlPanelEntry



Comments

  1. Is there any further reading you would recommend on this?

    Amela
    control panels

    ReplyDelete
  2. ooo great information. I am a writer of custom dissertation writing service and this would help me when writing dissertation

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate