+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Keeping site name after deploy to production

Keeping site name after deploy to production

2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    16 Jul 2007
    Link to this post
    Hi,

    Little question. On a development server where a Sitefinity project is installed on a virtual directory the login and admin interfaces display the name of the project - nice feature. eg logon says Sitefinity I Perkins Resources

    When you deploy a Sitefinity site to a production environment though, it is usually deployed to the root folder of the site which makes the project names disappear eg Sitefinity I

    Any solutions for this.

    Seth
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    16 Jul 2007
    Link to this post
    Hi Seth,

    Thanks a lot for reporting this issue. We will figure out how to save the name of the project and display it dynamically but for now you could hardcode it.

    Open Login.aspx.cs in your Visual Studio. It is located in Sitefinity folder. After that find the following code in Page_Load:

    this.projectName.InnerText = this.Request.ApplicationPath.Trim('/');

    It sets the project name on the Login page. You could replace this.Request.ApplicationPath.Trim('/') and hardcode your project name. For the admin interface the change should be in /Sitefinity/Admin/Admin.master.cs. You should change the following part of code in Page_Load:

    this.projectName.Controls.Add(new LiteralControl(this.Request.ApplicationPath));

    Hope this helps.

    All the best,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered