留言板
How to change the site name
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.
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.
I've found it by accident, looking for something else: Control Panel -> Configuration -> Instance Settings -> Configuration -> General -> Name.
Hi Cezariusz Marek,
Go to Control Panel -> your site -> Configuration-> Site Settings.
There is one field called "Name".
Regards,
Devang
Go to Control Panel -> your site -> Configuration-> Site Settings.
There is one field called "Name".
Regards,
Devang
Hi,
Click on the site name that you want to change -> Configuration ->Site Settings - Edit the name of the site..
Thanks,
VS
Click on the site name that you want to change -> Configuration ->Site Settings - Edit the name of the site..
Thanks,
VS
Devang Patel, Virat sen,
Where do you see the field with the site name here?
.
Where do you see the field with the site name here?
.
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
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
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.
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()
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
How can i change default site name in LR 7.0.6.
I can't see Script tab into Server Administration
Omkar KhandareI have added all public pages into default site and it has lots of pages.Control Panel / Configuration / Instance Settings. It's the first input field.
How can i change default site name in LR 7.0.6.
I can't see Script tab into Server Administration
For all other sites in their own settings.
Olaf KockIn 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
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
Gnaniyar Zubair,修改在4 年前。
RE: How to change the site name
Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子Mohamed SideekOlaf KockIn 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
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
It is a weird issue. Please check the "Group" table in DB after changing the Site name.
Gnaniyar ZubairMohamed SideekOlaf KockIn 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
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
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
Gnaniyar Zubair,修改在4 年前。
RE: How to change the site name
Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子Mohamed SideekGnaniyar ZubairMohamed SideekOlaf KockIn 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
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
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?
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
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?