Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: How to change title ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
silentpond
Newbie
Newbie


Joined: 16 March 2013
Online Status: Offline
Posts: 36
Posted: 01 October 2014 at 1:08am | IP Logged Quote silentpond

Is there a way to change "Mail -" part of title on e-mail log in page?

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 View silentpond's Profile Search for other posts by silentpond
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 October 2014 at 2:06am | IP Logged Quote Igor

The code which builds the screen title is found in static/js/app.js file, AppBase.prototype.getTitleByScreen function:

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:

Code:
[TITLE]
LOGIN = "Mail"


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
silentpond
Newbie
Newbie


Joined: 16 March 2013
Online Status: Offline
Posts: 36
Posted: 01 October 2014 at 5:19am | IP Logged Quote silentpond

Is there anything wrong anywhere? I didn't find any prefilled text like

[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 View silentpond's Profile Search for other posts by silentpond
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 01 October 2014 at 5:28am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
silentpond
Newbie
Newbie


Joined: 16 March 2013
Online Status: Offline
Posts: 36
Posted: 01 October 2014 at 6:50am | IP Logged Quote silentpond

I'm trying the new version. The demo of new version looks very impressive.
Back to Top View silentpond's Profile Search for other posts by silentpond
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide