More in this section
Forums / Deployment / Keeping site name after deploy to production

Keeping site name after deploy to production

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    27 Sep 2012
    16 Jul 2007
    Link to this post

    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.

  2. Pepi
    Pepi avatar
    981 posts
    31 Jan 2017
    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,
    the Telerik team

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