Dims
Dims

Reputation: 51059

How to open "Portlet Preferences" page of dialog in Liferay?

It is said in manual to CompactTags portlet, that user should "open preferences interface" after portlet installation (said here).

If I press wrench icon, I get only "Look and Feel" and "Configuration" entries.

enter image description here

Is this mean that something wrong with my theme?

Upvotes: 0

Views: 370

Answers (2)

Pankaj Kathiriya
Pankaj Kathiriya

Reputation: 4210

Preferences option appears when portlet has configured with edit mode in portlet.xml, portlet you are referring is not having that. There is code missing in the portlet. 

Upvotes: 2

Olaf Kock
Olaf Kock

Reputation: 48067

in your portlet.xml, you'll have to support the portlet's "edit" mode. That's how the JSR-286 standard names the "Preferences" setting. IMHO Liferay's choice of "Preferences" is a better name than "edit", thus it's used on the user-facing interface.

In addition, the user in question must have permission to "edit" the portlet.

partial portlet.xml:

<portlet>
  ....
  <supports>
     <mime-type>text/html</mime-type>
     <portlet-mode>view</portlet-mode>
     <portlet-mode>edit</portlet-mode> <!-- this is what you need -->
  </supports>
  ...
</portlet>

Upvotes: 2

Related Questions