掲示板

How to change the site name

thumbnail
7年前 に Cezariusz Marek によって更新されました。

How to change the site name

New Member 投稿: 12 参加年月日: 16/09/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
7年前 に Cezariusz Marek によって更新されました。

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

New Member 投稿: 12 参加年月日: 16/09/12 最新の投稿
I've found it by accident, looking for something else: Control Panel -> Configuration -> Instance Settings -> Configuration -> General -> Name.
thumbnail
7年前 に Devang Patel によって更新されました。

RE: How to change the site name

Regular Member 投稿: 247 参加年月日: 15/01/19 最新の投稿
Hi Cezariusz Marek,

Go to Control Panel -> your site -> Configuration-> Site Settings.
There is one field called "Name".
Regards,
Devang
7年前 に Virat sen によって更新されました。

RE: How to change the site name

Junior Member 投稿: 57 参加年月日: 13/07/21 最新の投稿
Hi,

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


Thanks,
VS
thumbnail
7年前 に Cezariusz Marek によって更新されました。

RE: How to change the site name

New Member 投稿: 12 参加年月日: 16/09/12 最新の投稿
Devang Patel, Virat sen,

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

.
thumbnail
7年前 に Devang Patel によって更新されました。

RE: How to change the site name

Regular Member 投稿: 247 参加年月日: 15/01/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
7年前 に Cezariusz Marek によって更新されました。

RE: How to change the site name

New Member 投稿: 12 参加年月日: 16/09/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.
5年前 に Muhammad Usman によって更新されました。

RE: How to change the site name

New Member 投稿: 16 参加年月日: 18/09/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

5年前 に Tom Aerts によって更新されました。

RE: How to change the site name

New Member 投稿: 17 参加年月日: 17/08/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
5年前 に Omkar Khandare によって更新されました。

RE: How to change the site name

Junior Member 投稿: 49 参加年月日: 12/03/07 最新の投稿
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
5年前 に Olaf Kock によって更新されました。

RE: How to change the site name

Liferay Legend 投稿: 6403 参加年月日: 08/09/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
5年前 に Mohamed Sideek によって更新されました。

RE: How to change the site name

New Member 投稿: 5 参加年月日: 15/01/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
5年前 に Gnaniyar Zubair によって更新されました。

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
5年前 に Mohamed Sideek によって更新されました。

RE: How to change the site name

New Member 投稿: 5 参加年月日: 15/01/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
5年前 に Gnaniyar Zubair によって更新されました。

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
5年前 に Mohamed Sideek によって更新されました。

RE: How to change the site name

New Member 投稿: 5 参加年月日: 15/01/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
5年前 に Gnaniyar Zubair によって更新されました。

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
5年前 に Mohamed Sideek によって更新されました。

RE: How to change the site name

New Member 投稿: 5 参加年月日: 15/01/14 最新の投稿
I did and the same 
I found this issue explained here

LRDOCS-3366
5年前 に Mohamed AbdAlghany によって更新されました。

RE: How to change the site name

New Member 投稿: 1 参加年月日: 18/06/06 最新の投稿
RE: How to change the site name
thumbnail
5年前 に Mohamed Sideek によって更新されました。

RE: How to change the site name

New Member 投稿: 5 参加年月日: 15/01/14 最新の投稿
The issue fixed in
​​​​​​​
Liferay DXP 7.1 Fix Pack 10