liferay portal设置默认栏目

liferay 版本5.2.3
1、在liferay中的portal工程下的portal-web/WEB-INF/liferay-portlet.xml中增加
 <portlet>
<portlet-name>561</portlet-name>
<icon>/html/icons/default.png</icon>
<struts-path>journal_content</struts-path>
<configuration-action-class>com.liferay.portlet.journalcontent.action.ConfigurationActionImpl</configuration-action-class>
<friendly-url-mapper-class>com.liferay.portlet.journalcontent.JournalContentFriendlyURLMapper</friendly-url-mapper-class>
<portlet-data-handler-class>com.liferay.portlet.journal.lar.JournalContentPortletDataHandlerImpl</portlet-data-handler-class>
<portlet-layout-listener-class>com.liferay.portlet.journalcontent.JournalContentPortletLayoutListener</portlet-layout-listener-class>
<use-default-template>false</use-default-template>
<restore-current-view>false</restore-current-view>
<layout-cacheable>true</layout-cacheable>
<instanceable>true</instanceable>
<private-request-attributes>false</private-request-attributes>
<private-session-attributes>false</private-session-attributes>
<render-weight>50</render-weight>
<header-portlet-css>/html/portlet/journal_content/css.jsp</header-portlet-css>
<css-class-wrapper>portlet-journal-content</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>

2、在portlet-custom.xml中增加
<portlet>
<portlet-name>561</portlet-name>
<display-name>Journal Content</display-name>
<portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
<init-param>
<name>view-action</name>
<value>/journal_content/view</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supports>
<mime-type>application/vnd.wap.xhtml+xml</mime-type>
</supports>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>

3、在liferay-display.xml中增加
<category name="category.cms">
<portlet id="20" />
<portlet id="31" />
<portlet id="56" />
<portlet id="561" />


4、在portal-impl/src/portal.properties中修改
default.user.public.layout.name=个人首页

default.user.public.layout.column-1=561

5、在portal-impl/src/content/Language_zh_CN.properties.native中添加
javax.portlet.title.561=个人简历

在portal-impl/src/content/Language_zh_CN.properties.native中添加
javax.portlet.title.561=\u4e2a\u4eba\u7b80\u5386

重新生成Ext工程,然后deploy就可以看见效果了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值