Project

General

Profile

Actions

Feature #18195

closed

Feature request: website name on BE login screen

Added by H. Hahn over 16 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-02-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

I have several TYPO3 website projects. When I want to login into the backend of a website, there no indication whatsoever as to what site I am actually logging in. Of course "Sshould know". But in my browser, I have a list of bookmarks to those websites, and when I am in a hurry I may very well just hit one link too high or too low.
Therefore it would ne a good idea if the website name where displayed on the login screen, so that we can see whether or not we are about to login to the correct site, without having to wait for the actual login process, which sometime takes some time when trafiic is busy on the intenret.

n/a
(issue imported from #M7502)


Files

20080214_showLoginHeader.diff (411 Bytes) 20080214_showLoginHeader.diff Administrator Admin, 2008-02-14 10:42
Actions #1

Updated by Steffen Kamper over 16 years ago

i look to url in this case.
You also can use a not very well known method in typo3conf/ext_tables.php:

$GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'][] = Array(
'date' => 'Januar 2007',
'header' => 'Client:: companyname',
'content' => 'ok, here i go every day.',
);

Actions #2

Updated by H. Hahn over 16 years ago

Thanks. That does indeed work.
I even managed to replace the date you gave ("Januar 2007") by a PHP call date ("Y-m-d H:i:s"); that works, too

However, it shows a header "Important message" or so, which is not quite appropriate. And the message as such has a pretty small font. It would be better if the website name were shown somewhere at the top, in a well-readable font size.
Also, the information needed (viz. the website name) is already available from the configuration. It is shown e.g. at the top of the page tree in the back end. So why not show it on the BE login screen as well?

Sincerely,
H. Hahn

Actions #3

Updated by Steffen Kamper over 16 years ago

use
'header' => $TYPO3_CONF_VARS['SYS']['sitename']

i don't see need of patch herefor

Actions #4

Updated by H. Hahn over 16 years ago

I am sorry to say that this is one of those nice examples of miscommunication found on many software forums.

You say: Use 'header'=> $TYPO3_CONF_VATS['SYS']['sitename']

But WHERE should I use this? And do I have to edit the config (or whatever) of ALL my Typo3 websites for this?

As I said, the required info is already avaliable (it is being shown at the top of the page tree in the BE). So I don't see any need for again supplying the information (that is what I understand you are suggesting; only the location where to supply it is missing). The only thing I ask is to display information that is already available.

I cannot imagine that there is any website developer who would prefer NOT to see the website name clearly visible on the BE login screen. And just in case such an inimaginable guy does exist and you wnat to cope for taht, than add a checkbox "Show on BE login screen" to the configuration parameter field where the site name is defined. But once again, I do not believe this checkbox is necessary.

Again: I am not suggesting to supply another facitlty to again enter information that has already been entered. What I am actually suggesting is that you USE the ALREADY AVAILABLE information at one more place.

Actions #5

Updated by H. Hahn over 16 years ago

Why does the install tool have header lines as follows:
TYPO3 4.1 Install tool
Site: [sitename]
Version: 4.1.2
?
Execpt that the following order:
TYPO3 4.1 Install tool
Version: 4.1.2
Site: [sitename]
would be more logical (after all, it is version 4.1.2 of TYPO3, not of the website!),
this clearly indicates that using the clearly readable site name in a header is already possible! Now just add this to the BE login screen as well, and many meople will be happy! After all, how often do we see the install tool screen? And how often do we see the BE login screen?

In general, so-called "programmer's macho" is usually contrary to ergonomics!

Actions #6

Updated by Dirk Weise over 16 years ago

Although I don't really see a need for it because you can look at the url and the website's name is shown in the title, this is definitely a bug.

Reason: the name of the website is actually inserted into the BE Loginform but not displayed! Just have a look into the be-login form's html source code.

It is configured in /typo3/sysext/install/modules/setup/conf.php at line 76
$TYPO3_CONF_VARS['BE']['loginLabels'] // Language labels of the login prompt.
and inserted into the BE-Login Form in /typo3/index.php at lines 192 resp. 299. (trunk as of rev 3142)

Steffen already explained in his first post where to use the 'header'=> $TYPO3_CONF_VATS['SYS']['sitename'] ......

Actions #7

Updated by Steffen Kamper over 16 years ago

ok, Dirk, you're right, it's even printed out but hidden in CSS

table#logintable H2 {visibility:hidden; ...}

So making this configurable would solve it

Actions #8

Updated by Steffen Kamper over 16 years ago

again - it's only with t3skin, this hides the login header.
So only this has to be removed

i attached a patch which removes this

Actions #9

Updated by H. Hahn over 16 years ago

Mr. Kamper, thanks for the patch.

However, two remarks:

1. I have no experiance whatsoever using DIFF files. I don't even know what software to use for applying it. Currently I am working both on Linux servers and on a local WAMPserver on my local computer. The latter one is a Windows machine (*W*AMPserver).
So I opened the file and tried to understand what it says. I seem to have managed (however, see the next point.)

2. I presume the tag definition presented in your patch file is the required NEW one. However, it says the same as the apparently buggy old version. So I decided to change "visibility: hidden" into "visibility: visible". And, lo and behold, IT WORKS.

Conclusion:
May I now suggest that this thread, which was started as a "feature request", be now promoted into a "bug report"?

Actions #10

Updated by Steffen Kamper over 16 years ago

the diff is for core list so this will get in core source if accepted.
i declared it there as Bug, so don't matter how it's called here.

So this will go into 4.2 hopefully, may be if it's accepted it can go to 4.1 as well.

Actions #11

Updated by Ingmar Schlecht about 16 years ago

Committed to TYPO3_4-2.

Actions

Also available in: Atom PDF