Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
Alessandro Cosenza
Ext portlet not showing configuration icon in control panel
19 marzo 2010 4.03
Risposta

Alessandro Cosenza

Punteggio: Junior Member

Messaggi: 83

Data di Iscrizione: 18 novembre 2009

Messaggi recenti

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.
Alessandro Cosenza
RE: Ext portlet not showing configuration icon in control panel
19 marzo 2010 4.53
Risposta

Alessandro Cosenza

Punteggio: Junior Member

Messaggi: 83

Data di Iscrizione: 18 novembre 2009

Messaggi recenti

The answer is:

1
2<preferences-unique-per-layout>false</preferences-unique-per-layout>


in liferay-portlet.xml

But actually I don't need this.
Thanks.
Shagul Khajamohideen
RE: Ext portlet not showing configuration icon in control panel
19 marzo 2010 4.55
Risposta