hello,
i have developed a newsletter portlet in the ext environment, i'm using liferay 5.2.3.
here are the relevant paremeters for the portlet
1
2<control-panel-entry-category>content</control-panel-entry-category>
3<control-panel-entry-weight>5.0</control-panel-entry-weight>
i have created a folder ext-resource-actions with ext-default.xml
1
2<resource-action-mapping>
3<resource file="ext-resource-actions/newsletter.xml" />
4</resource-action-mapping>
newsletter.xml contains
1
2<resource-action-mapping>
3 <portlet-resource>
4 <portlet-name>newsletter</portlet-name>
5 <supports>
6 <action-key>SEND_NEWSLETTER</action-key>
7 <action-key>ACCESS_IN_CONTROL_PANEL</action-key>
8 <action-key>CONFIGURATION</action-key>
9 <action-key>VIEW</action-key>
10 </supports>
11 <community-defaults>
12 <action-key>VIEW</action-key>
13 </community-defaults>
14 <guest-defaults>
15 <action-key>VIEW</action-key>
16 </guest-defaults>
17 <guest-unsupported>
18 <action-key>SEND_NEWSLETTER</action-key>
19 <action-key>ACCESS_IN_CONTROL_PANEL</action-key>
20 <action-key>CONFIGURATION</action-key>
21 </guest-unsupported>
22 </portlet-resource>
23</resource-action-mapping>
in the portal-ext.properties I have added
1resource.actions.configs=resource-actions/default.xml,ext-resource-actions/ext-default.xml
in my view.jsp I check for the SEND_NEWSLETTER permission
1
2boolean showSendNewsletterAction = permissionChecker.hasPermission(scopeGroupId, "newsletter", scopeGroupId, "SEND_NEWSLETTER");
and it works.
The only thing it doesn't work is that when I access the portlet from Control Panel I cannot see the Option Icon that would show the menu with Configuration and Import/Export.
Please would anybody give me an help?
Thanks in advance.
Firmi prego dentro per inbandierare questo come inadeguato.