質問

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?

役に立ちましたか?

解決

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>

他のヒント

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. 

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top