Liferay组织portlet

时间:2014-02-25 18:05:08

标签: liferay liferay-6 portlet liferay-ide

有没有办法为我在控制面板中制作的组织制作一个portlet?

它必须像这样>>用户登录并查看其组织的portlet,并可根据请求编辑更新删除。

我创建了组织层次结构,并使每个角色都成为用户......等等

它可以通过钩子或者请帮助我做什么?!

i have tried this

1 个答案:

答案 0 :(得分:0)

您可以通过在

中添加以下行来在控制面板中添加portlet
<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight> 9.5</control-panel-entry-weight>

所以你的liferay-portlet.xml看起来像

    <liferay-portlet-app>

        <portlet>
            <portlet-name>Test Portlet</portlet-name>
            <icon>/icon.png</icon>
            <control-panel-entry-category>content</control-panel-entry-category>
            <control-panel-entry-weight> 9.5</control-panel-entry-weight>
             <instanceable>false</instanceable>
            <header-portlet-css>/css/main.css</header-portlet-css>
            <footer-portlet-javascript> /js/main.js
            </footer-portlet-javascript> 
<css-class-wrapper>
                test-portlet
            </css-class-wrapper>
            <add-default-resource>true</add-default-resource> 
        </portlet>
        <role-mapper>
            <role-name>administrator</role-name>
            <role-link>Administrator</role-link>
        </role-mapper>
        <role-mapper>
            <role-name>guest</role-name>
            <role-link>Guest</role-link>
        </role-mapper>
        <role-mapper>
            <role-name>power-user</role-name>
            <role-link>Power User</role-link>
        </role-mapper>
        <role-mapper>
            <role-name>user</role-name>
            <role-link>User</role-link>
        </role-mapper>
    </liferay-portlet-app>

让我知道它是否适合你。