[TYPO3] newloginbox and sr_language_menu in T3 template
R E Klerk
rklerk at wanadoo.nl
Sat Jan 21 11:36:00 CET 2006
Hello, I have a T3 3.8.1. website with the newloginbox and sr_language_menu extensions running. They both show on every page, using the undermentioned T3 template setup. So far so good, but... I want the link "Forgot password?", which is hardcoded in the T3 setup, to be based on what is set in the newloginbox/pi1/locallang.php so the text will change upon language selection. Anyone an idea?
# Language cObject
temp.languageMenu = COA
temp.languageMenu {
10 = RECORDS
10.tables = tt_content
10.source = 44
}
temp.languageMenu < plugin.tx_srlanguagemenu_pi1
temp.languageMenu.languagesUidsList = 0,1
temp.languageMenu.defaultLayout= 0
temp.languageMenu.defaultLanguageISOCode = nl
# Newloginbox cObject
temp.login_logout = TEXT
temp.login_logout.insertData = 1
temp.login_logout.value (
<form name="login" id="login" method="post" action="index.php?id=24">
<input name="user" type="text" class="loginfield" size="12" /> <input name="pass" type="password" class="loginfield" size="16" /> <input name="Submit" type="submit" class="loginbutton" value="Login" /><br />
<input type="hidden" name="logintype" value="login">
<input type="hidden" name="redirect_url" value="index.php?id=24">
<input type="hidden" name="pid" value="23">
<a href="index.php?id=24&no_cache=1&tx_newloginbox_pi1.[forgot]=1">Forgot password?</a>
</form>
)
[usergroup = *]
temp.loginScript=PHP_SCRIPT
temp.loginScript.file= fileadmin/scripts/fe_user.inc
temp.login_logout >
temp.login_logout = TEXT
temp.login_logout.insertData = 1
temp.login_logout.value (
<form action="index.php?id=25" method="POST">
<p>U bent ingelogd<br />
Gebruikersnaam: <!--###USERNAME###--><br />
<input name="Submit" type="submit" class="loginbutton" value="Logout" /> </p>
<input type="hidden" name="logintype" value="logout">
<input type="hidden" name="redirect_url" value="index.php?id=24">
</form><br />
)
[global]
<snip>
# Substitude the ###languageMenu### subpart with dynamic content:
subparts.languageMenu < temp.languageMenu
# Substitude the ###loginform### subpart with dynamic content:
subparts.loginform < temp.login_logout
# Setting up the default language variable "L" to be passed along with links
config.linkVars = L
config.sys_language_uid = 0
config.language = nl
config.locale_all = nl_NL
# Dutch language, sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = nl
config.locale_all = nl_NL
# English language, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_EN
[global]
Thxs for your help!!
Ralph
More information about the TYPO3-english
mailing list