留言板

How to change the site name

thumbnail
Cezariusz Marek,修改在7 年前。

How to change the site name

New Member 帖子: 12 加入日期: 16-9-12 最近的帖子
I've started Liferay 7.0 GA3 bundled with Tomcat, changed database driver to PostgreSQL, and restarted. In the initial configuration wizard I've entered the site name with a non-English character, and for some reason it has been saved to the database with a wrong encoding.

How do I change the site name? I cannot find it anywhere. I've tried Control Panel -> Sites -> Sites -> Edit, but the site name is only on the black bar at top of the page, and there is no field to edit it. I've tried to search for the solution, but all answers were related to version 6, and they apparently do not apply to version 7.
thumbnail
Cezariusz Marek,修改在7 年前。

RE: How to change the site name (答复)

New Member 帖子: 12 加入日期: 16-9-12 最近的帖子
I've found it by accident, looking for something else: Control Panel -> Configuration -> Instance Settings -> Configuration -> General -> Name.
thumbnail
Devang Patel,修改在7 年前。

RE: How to change the site name

Regular Member 帖子: 247 加入日期: 15-1-19 最近的帖子
Hi Cezariusz Marek,

Go to Control Panel -> your site -> Configuration-> Site Settings.
There is one field called "Name".
Regards,
Devang
Virat sen,修改在7 年前。

RE: How to change the site name

Junior Member 帖子: 57 加入日期: 13-7-21 最近的帖子
Hi,

Click on the site name that you want to change -> Configuration ->Site Settings - Edit the name of the site..


Thanks,
VS
thumbnail
Cezariusz Marek,修改在7 年前。

RE: How to change the site name

New Member 帖子: 12 加入日期: 16-9-12 最近的帖子
Devang Patel, Virat sen,

Where do you see the field with the site name here?

.
thumbnail
Devang Patel,修改在7 年前。

RE: How to change the site name

Regular Member 帖子: 247 加入日期: 15-1-19 最近的帖子
Hi Cezariusz Marek,

The siteName which you edit is your default LR site.
You didn't mention that you want to change LR's default site Name(Instance), So I suggested for newly created site.
Refer the below screenshot for new site.

Regards,
Devang
thumbnail
Cezariusz Marek,修改在7 年前。

RE: How to change the site name

New Member 帖子: 12 加入日期: 16-9-12 最近的帖子
Devang Patel:

You didn't mention that you want to change LR's default site Name(Instance), So I suggested for newly created site.


I'm a novice user, I had no idea there is a difference between the default site and a new site. Thanks for trying to help though.
Muhammad Usman,修改在5 年前。

RE: How to change the site name

New Member 帖子: 16 加入日期: 18-9-27 最近的帖子
Hi,
Devang Patel

Do you know how to import resouces in LR's default site using resource importer. i f i create a new site they get imported but with my existing default site they are not getting imported. I am using Liferay DXP 7.1

Tom Aerts,修改在5 年前。

RE: How to change the site name

New Member 帖子: 17 加入日期: 17-8-25 最近的帖子
To Change the default site's name (LR 7.1), run this script under Server Admin > Script

import com.liferay.portal.kernel.service.*;
import com.liferay.portal.kernel.util.*;

result = GroupLocalServiceUtil.search(PortalUtil.getDefaultCompanyId(), null, "Liferay DXP", null, null, false, 0, 1).get(0);
company = CompanyLocalServiceUtil.getCompany(result.getCompanyId())
company.getAccount().setName("New Site Name")
company.getAccount().persist()
thumbnail
Omkar Khandare,修改在5 年前。

RE: How to change the site name

Junior Member 帖子: 49 加入日期: 12-3-7 最近的帖子
I have added all public pages into default site and it has lots of pages.
How can i change default site name in LR 7.0.6.

I can't see Script tab into Server Administration
thumbnail
Olaf Kock,修改在5 年前。

RE: How to change the site name

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Omkar KhandareI have added all public pages into default site and it has lots of pages.
How can i change default site name in LR 7.0.6.

I can't see Script tab into Server Administration
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
thumbnail
Mohamed Sideek,修改在4 年前。

RE: How to change the site name

New Member 帖子: 5 加入日期: 15-1-14 最近的帖子
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue
thumbnail
Gnaniyar Zubair,修改在4 年前。

RE: How to change the site name

Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 
thumbnail
Mohamed Sideek,修改在4 年前。

RE: How to change the site name

New Member 帖子: 5 加入日期: 15-1-14 最近的帖子
Gnaniyar Zubair
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 

Please explain more check what in "Group" table
After I changed in "Control Panel" the name in "Account_" table changed correctly but after restart the server the old value back again in "Account_" table
thumbnail
Gnaniyar Zubair,修改在4 年前。

RE: How to change the site name

Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子
Mohamed Sideek
Gnaniyar Zubair
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 

Please explain more check what in "Group" table
After I changed in "Control Panel" the name in "Account_" table changed correctly but after restart the server the old value back again in "Account_" table


Sorry i thought you are trying to change the Site name. ( subject of the title misguided )

OK got it, You are changing the instance name of the portal, then it should be changed in Account_ table. 

Please check the portal-ext.properties if any default instance name is mentioned? 
thumbnail
Mohamed Sideek,修改在4 年前。

RE: How to change the site name

New Member 帖子: 5 加入日期: 15-1-14 最近的帖子
I checked liferay code and I found the issue in "com.liferay.portal.properties.swapper.internal.DefaultCompanyNameSwapper" so I ovrride this property in Portal-ext "company.default.name=NewName" and should take affect but not working
thumbnail
Gnaniyar Zubair,修改在4 年前。

RE: How to change the site name

Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子
Mohamed SideekI checked liferay code and I found the issue in "com.liferay.portal.properties.swapper.internal.DefaultCompanyNameSwapper" so I ovrride this property in Portal-ext "company.default.name=NewName" and should take affect but not working


Did you check removing the property from portal-ext and changing the name through control panel?
thumbnail
Mohamed Sideek,修改在4 年前。

RE: How to change the site name

New Member 帖子: 5 加入日期: 15-1-14 最近的帖子
I did and the same 
I found this issue explained here

LRDOCS-3366
Mohamed AbdAlghany,修改在4 年前。

RE: How to change the site name

New Member 发布: 1 加入日期: 18-6-6 最近的帖子
RE: How to change the site name
thumbnail
Mohamed Sideek,修改在4 年前。

RE: How to change the site name

New Member 帖子: 5 加入日期: 15-1-14 最近的帖子
The issue fixed in
​​​​​​​
Liferay DXP 7.1 Fix Pack 10