| Author |  | 
      
        | silentpond Newbie
 
  
 
 Joined: 16 March 2013
 Online Status: Offline
 Posts: 36
 | 
          Is there a way to change "Mail -" part of title on e-mail log in page?
           | Posted: 01 October 2014 at 1:08am | IP Logged |   |  
           | 
 |  
 For example, I want to replace "Mail - My SIte Name" with "Mailbox || My Site Name".
 
 I guess this part of title tag is generated dynamically but I was unable to point out the code.
 
 Thanks in advance.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          The code which builds the screen title is found in static/js/app.js file, AppBase.prototype.getTitleByScreen function:
           | Posted: 01 October 2014 at 2:06am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | switch (this.currentScreen()) {
 case Enums.Screens.Login:
 sTitle = Utils.i18n('TITLE/LOGIN', null, '');
 break;
 ...
 }
 else
 {
 sTitle += (AppData.App.SiteName && AppData.App.SiteName !== '') ? ' - ' + AppData.App.SiteName : '';
 }
 |  |  |  
 Note that static/js/app.js file isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:
 
 
 
| Code: 
 
    
    | 
      
       | 'labs.use-app-min-js' => false, |  |  |  
 The Mail text itself is taken from language file in a standard way for WebMail localization. In i18n/English.ini file, for example, that would be:
 
 
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | silentpond Newbie
 
  
 
 Joined: 16 March 2013
 Online Status: Offline
 Posts: 36
 | 
          Is there anything wrong anywhere? I didn't find any prefilled text like
           | Posted: 01 October 2014 at 5:19am | IP Logged |   |  
           | 
 |  
 [TITLE]
 LOGIN = "Mail"
 
 in i18n/English.ini file.
 
 Is the following block of code and it's sequence correct?
 
 
 I can't see any initiative of relevant conditional statement where I can adjust the following code:
 
 }else{
 sTitle += (AppData.App.SiteName && AppData.App.SiteName !== '') ? ' || ' + AppData.App.SiteName : '';
 }
 break;
 
 
 Also, is 'labs.use-app-min-js' => false, the correct way to minus app.min.js and plus app.js ?
 
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          
           | Posted: 01 October 2014 at 5:28am | IP Logged |   |  
           | 
 |  
| Quote: 
 
    
    | 
      
       | Is there anything wrong anywhere? I didn't find any prefilled text like 
 [TITLE]
 LOGIN = "Mail"
 
 in i18n/English.ini file.
 |  |  |  
 It is there in the current version, lines 97-98.
 
 
 
| Quote: 
 
    
    | 
      
       | Is the following block of code and it's sequence correct? |  |  |  
 I don't think so, Subject has nothing to do with that. Also, I hope you understand that modifications like this take certain knowledge of programming in general and JavaScript in particular.
 
 But if you simply need to replace "-" in login screen title with some other character, you'll be modifying this line:
 
 
 
| Code: 
 
    
    | 
      
       | sTitle += (AppData.App.SiteName && AppData.App.SiteName !== '') ? ' - ' + AppData.App.SiteName : ''; |  |  |  
 
 
| Quote: 
 
    
    | 
      
       | Also, is 'labs.use-app-min-js' => false, the correct way to minus app.min.js and plus app.js ? |  |  |  
 No, you just include this line in config.php file as it is.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | silentpond Newbie
 
  
 
 Joined: 16 March 2013
 Online Status: Offline
 Posts: 36
 | 
          I'm trying the new version. The demo of new version looks very impressive.
           | Posted: 01 October 2014 at 6:50am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |