Bug #16755
closedThe storagePid doesn't work or overwrite General Record Storage Page (GRSP) pid
0%
Description
Information on my system:
Typo3: 4.0.2
newloginbox: 3.0.1
Main System Folder with Templavoila Template: pid = 45
FE User System Folder: pid = 60
I have a page specifically created for FE Login, and at the same time a small quick login box appear on every page.
For the specific Login page:
Initially I had set the GRSP for FE User System Folder, the login work find. But when I unset the GRSP and set the following in the template setup, plugin.tx_newloginbox_pi1.storagePid = 60, and the Typoscript Object Browser also shown that the [storagePid]=60, the login fail.
To confirm the storagePid doesn't work, I set back the GRSP to FE User System Folder, and change the plugin.tx_newloginbox_pi1.storagePid = 47 (my tt_new system folder), this time the login work fine again.
I need the storagePid to work mainly for the quick login on every page so as to the purpose of the this storagePid created.
I have also tried the bug report on 0004402: add config'able FE user storage page also via flexform, but this doesn't work also.
Thank for any help in advance.
(issue imported from #M4596)
Updated by Stefan Strasser almost 18 years ago
It seems like you didn't clear the FE cache after changing the template setup, so your changes in the template won't have any effect (but unsetting the GRSP has an immediate effect). The Typoscript Object Browser showed your configuration right, but it wasn't effective because of caching.
If newloginbox finds a storagePid-value this setting takes precedence before GRSP which is only taken if no storagePid is set.
I hope this helps.
Updated by Jack Ong almost 18 years ago
I have tried clear all the BE and FE cache but this doesn't help either.
My typoscript setup for templavoila under root menu tree is as follows:
- LOGIN ON EVERY PAGE
- Configuring the new login box, check if there is a logged in user
[usergroup=*]
#Logoff form with username
lib.loginBox = COA_INT
lib.loginBox {
10 = TEXT
10.value = User: <br />
10.wrap = <span id="logoutUName">|</span>
20 = TEXT
20.typolink.parameter = {$plugin.tx_newloginbox.loginUID}
20.typolink.returnLast = url
20.wrap = <form action="|" method="post">
30 = COA
30 {
5 = TEXT
5.wrap = <input type="submit" id="logout" value="Logout" />
10 = TEXT
10.value = <input type="hidden" name="logintype" value="logout" />
20 = TEXT
20.value = <input type="hidden" name="redirect_url" value="" />
30 = TEXT
30.value = </form>
}
}
- if no user is logged in we show the loginform
[else]
lib.loginBox = COA
lib.loginBox {
10 < plugin.tx_newloginbox_pi1
10 {
_LOCAL_LANG.default {
oLabel_header_welcome =
oLabel_msg_welcome =
oLabel_header_logout =
oLabel_msg_logout =
oLabel_header_error =
oLabel_msg_error =
oLabel_header_success =
oLabel_msg_success =
oLabel_header_status =
oLabel_msg_status =
cookie_warning =
username =
password =
login = Login
logout = Logout
send_password = Back to login
your_email =
forgot_password =
forgot_password_enterEmail =
forgot_password_emailSent =
forgot_password_backToLogin = Back to login
}
pid = 73
show_forgot_password = 0
- 20 = TEXT
- 20.value = Register
- 20.typolink.parameter = http://localhost/rbs401/index.php?id=103
- 20.wrap = <span>|</span>
}
- show the login only on a certain page and subpages
[PIDinRootline={$siteIntern}]
lib.loginBox.if.isTrue = 1
- enable login if the constant activateLogin = 1
[else]
lib.loginBox.if.isTrue = {$activateLogin}
[global]
(To work around this, I put all the website user together with the templavoila template system folder for the time being, since all page extend from this GRSP.)
Updated by Stefan Strasser almost 18 years ago
This is no bug, but a matter of using Typoscript. I've tested your typoscript, here my statements:
"10 < plugin.tx_newloginbox_pi1": If you want to change general settings of the extensions, you have to do it before this line (i.e. right at the beginning of your login-lines). "plugin.tx_newloginbox_pi1.storagePid = 567" works if it is written above your lines but not if is written below. This is because you insert newloginbox as it is at this point.
"pid = 73" / "show_forgot_password = 0": Here you seem to set some variables, but they are invalid, so they don't have any effect. Use "storagePid" and "showForgotPassword" instead. If you set them here, this will work, but only for this instance of newloginbox and not globally (the way mentioned before is a global way).
Your logout-link is invalid. One error is in this line:
"20.typolink.parameter = {$plugin.tx_newloginbox.loginUID}"
I'll close this bug soon, ok?
Updated by Jack Ong almost 18 years ago
Yes, please close the issue.
Thank for the reply so far. It seem still be a bit problem for me to get this to work properly. I will figure it out at a later time.
Thank you.