修改默认站点的页面内容

相关页面可以通过/portal-master/portal-impl/src/portal.properties文件配置进行修改:

登录页:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##
## Default Landing Page
##
     #
     # Set the  default  landing page path  for  logged in users relative to the
     # server path. This is the page users are automatically redirected to after
     # logging in. For example,  if  you want the  default  landing page to be
     # http: //localhost:8080/web/guest/login, set this to /web/guest/login. To
     # activate  this  feature, set auth.forward.by.last.path to  true . To customize
     # the behavior, see com.liferay.portal.events.DefaultLandingPageAction in
     # the  "login.events.post"  property above.
     #
     # The following variables can be used: ${liferay:screenName} and
     # ${liferay:userId}.
     #
     default .landing.page.path=
     # default .landing.page.path=/web/guest/login
     # default .landing.page.path=/user/${liferay:screenName}/home

登出页:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
##
## Default Logout Page
##
     #
     # Set the  default  logout page path  for  users relative to the server path.
     # This is the page users are automatically redirected to after logging out.
     # For example,  if  you want the  default  logout page to be
     # http: //localhost:8080/web/guest/logout, set this to /web/guest/logout. To
     # activate  this  feature, set auth.forward.by.last.path to  true . To customize
     # the behavior, see com.liferay.portal.events.DefaultLogoutPageAction in
     # the  "logout.events.post"  property above.
     #
     default .logout.page.path=
     # default .logout.page.path=/web/guest/logout

默认站点公开页:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##
## Default Guest Public Layouts
##
     #
     # The Guest group must have at least one  public  page. The settings  for  the
     # initial  public  page are specified in the following properties.
     #
     # If you need to add more than one page, set the property
     "default.guest.public.layouts.lar"  to specifiy a LAR file instead.
     #
     # For even more complex behavior, override the addDefaultGuestPublicLayouts
     # method in com.liferay.portal.service.impl.GroupLocalServiceImpl.
     #
     #
     # Set the name of the  public  layout.
     #
     default .guest. public .layout.name=Welcome
     #
     # Set the layout template id of the  public  layout.
     #
     default .guest. public .layout.template.id=2_columns_ii
     #
     # Set the portlet ids  for  the columns specified in the layout template.
     #
     default .guest. public .layout.column- 1 = 58
     default .guest. public .layout.column- 2 =
     default .guest. public .layout.column- 3 =
     default .guest. public .layout.column- 4 =
     #
     # Set the friendly url of the  public  layout.
     #
     default .guest. public .layout.friendly.url=/home
     #
     # Set the regular theme id  for  the  public  layout.
     #
     # default .guest. public .layout.regular.theme.id=classic
     #
     # Set the regular color scheme id  for  the  public  layout.
     #
     # default .guest. public .layout.regular.color.scheme.id= 01
     #
     # Set the wap theme id  for  the  public  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .guest. public .layout.wap.theme.id=mobile
     #
     # Set the wap color scheme  for  the  public  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .guest. public .layout.wap.color.scheme.id= 01
     #
     # Specify a LAR file that can be used to create the guest  public  layouts.
     # If  this  property is set, the previous layout properties will be ignored.
     #
     # default .guest. public .layouts.lar=${liferay.home}/deploy/default_guest_public.lar

个人公开站点默认页:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##
## Default User Public Layouts
##
     #
     # If the properties  "layout.user.public.layouts.enabled"  and
     "layout.user.public.layouts.auto.create"  are both set to  true , then users
     # will have  public  layouts and they will be automatically created. The
     # settings below are used  for  the creation of the initial  public  pages.
     #
     # If you need to add more than one page, set the property
     "default.user.public.layouts.lar"  to specify a LAR file instead.
     #
     # For even more complex behavior, override the addDefaultUserPublicLayouts
     # method in com.liferay.portal.events.ServicePreAction.
     #
     #
     # Set the name of the  public  layout.
     #
     default .user. public .layout.name=Welcome
     #
     # Set the layout template id of the  public  layout.
     #
     default .user. public .layout.template.id=2_columns_ii
     #
     # Set the portlet ids  for  the columns specified in the layout template.
     #
     default .user. public .layout.column- 1 =
     default .user. public .layout.column- 2 =
     default .user. public .layout.column- 3 =
     default .user. public .layout.column- 4 =
     #
     # Set the friendly url of the  public  layout.
     #
     default .user. public .layout.friendly.url=/home
     #
     # Set the regular theme id  for  the  public  layout.
     #
     # default .user. public .layout.regular.theme.id=classic
     #
     # Set the regular color scheme id  for  the  public  layout.
     #
     # default .user. public .layout.regular.color.scheme.id= 01
     #
     # Set the wap theme id  for  the  public  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .user. public .layout.wap.theme.id=mobile
     #
     # Set the wap color scheme  for  the  public  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .user. public .layout.wap.color.scheme.id= 01
     #
     # Specify a LAR file that can be used to create the user  public  layouts. If
     this  property is set, the previous layout properties will be ignored.
     #
     # default .user. public .layouts.lar=${liferay.home}/deploy/default_user_public.lar

个人私有站点默认页:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##
## Default User Private Layouts
##
     #
     # If the properties  "layout.user.private.layouts.enabled"  and
     "layout.user.private.layouts.auto.create"  are both set to  true , then users
     # will have  private  layouts and they will be automatically created. The
     # settings below are used  for  the creation of the initial  private  pages.
     #
     # If you need to add more than one page, set the property
     "default.user.private.layouts.lar"  to specifiy a LAR file instead.
     #
     # For even more complex behavior, override the addDefaultUserPrivateLayouts
     # method in com.liferay.portal.events.ServicePreAction.
     #
     #
     # Set the name of the  private  layout.
     #
     default .user. private .layout.name=Welcome
     #
     # Set the layout template id of the  private  layout.
     #
     default .user. private .layout.template.id=2_columns_ii
     #
     # Set the portlet ids  for  the columns specified in the layout template.
     #
     default .user. private .layout.column- 1 = 11
     default .user. private .layout.column- 2 =
     default .user. private .layout.column- 3 =
     default .user. private .layout.column- 4 =
     #
     # Set the friendly url of the  private  layout.
     #
     default .user. private .layout.friendly.url=/home
     #
     # Set the regular theme id  for  the  private  layout.
     #
     # default .user. private .layout.regular.theme.id=classic
     #
     # Set the regular color scheme id  for  the  private  layout.
     #
     # default .user. private .layout.regular.color.scheme.id= 01
     #
     # Set the wap theme id  for  the  private  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .user. private .layout.wap.theme.id=mobile
     #
     # Set the wap color scheme  for  the  private  layout. This property is not used
     # unless the property  "mobile.device.styling.wap.enabled"  is set to  true .
     #
     # This property is deprecated and only provided  for  backwards compatibility.
     #
     # default .user. private .layout.wap.color.scheme.id= 01
     #
     # Specify a LAR file that can be used to create the user  private  layouts. If
     this  property is set, the previous layout properties will be ignored.
     #
     # default .user. private .layouts.lar=${liferay.home}/deploy/default_user_private.lar
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值