Hallo,
wahrscheinlich stehe ich auf dem Schlauch, denn ich hatte mich eine ganze Weile aus typo3 ausgeklinkt, und inzwischen hat sich da doch eine Menge getan.
Wie auch immer, ein Tipp wäre hilfreich.
Ich bekomme felogin auf allen Seiten nicht hin. Reicht es aus, so wie früher einfach einen Marker in das html-Template zu setzen und den dann über das Template-Setup zuzuweisen? Den Code hier aus dem Thread habe ich zwar verwendet, aber der Marker wird nicht aufgelöst.
So sieht es bei mir im Setup aus:
# Locale - Deutsche Spracheinstellungen
config.locale_all = de_DE
config.language = de
# Cache immer um Mitternacht leeren
config.cache_clearAtMidnight = 1
# Einstellungen Login auf allen Seiten
plugin.tx_felogin_pi1 {
storagePid = 6
templateFile = fileadmin/templates/felogin.html
preserveGETvars = all
wrapContentInBaseClass = 0
showForgotPasswordLink = 0
showPermaLogin = 0
#redirect
redirectMode = userLogin,groupLogin,login,logout
redirectFirstMethod = 1
redirectPageLogin = 1
redirectPageLogout = 1
}
# Template Start
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/css/css.css
# Seitendefinition
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/template/main.tmpl
workOnSubpart = DOKUMENT
# Content
marks {
MAIN = CONTENT
MAIN {
table = tt_content
select {
where = colPos = 0
orderBy = sorting
}
}
LINKS = CONTENT
LINKS {
table = tt_content
select {
where = colPos = 1
orderBy = sorting
}
}
}
# Datum
marks {
DATUM = TEXT
DATUM.data = date : d.m.Y
}
}
# Loginbox auf allen Seiten
marks.LOGIN = COA_INT
marks.LOGIN < plugin.tx_felogin_pi1
}
Vielleicht sieht einer den Fehler, den ich verbockt habe. Vielen Dank.
ohne TemplaVoila musst du "wiederholende" Elmente in RECORDS packen.
Just2B erklärt das hier /faq/content-ausgeben in den Kommentaren wunderbar.
Dein Marker sollte aber auf jeden Fall ersetzt werden, wenn das nicht geschieht, helfen dir auch RECORDS nicht weiter =)
Eventuell mal das template posten..
gruß
Info
Ich weiß, das Thema ist hier schon etwas älter, aber mir ist dazu noch eine Frage eingefallen bzw. etwas daran aufgefallen:
Ich habe folgendes Template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Templates for felogin</title>
</head>
<body>
<h1>Common markers</h1>
<p>These are substituted in all felogin item displaying templates.</p>
<h2>Markers</h2>
<ul>
<li>###ACTION_URI### - URI of the request for the login/logout form</li>
<li>###EXTRA_HIDDEN### - Hook required (additionnal hidden field used by kb_md5fepw extension by Kraft Bernhard)</li>
<li>###ON_SUBMIT### - Hook required (used by kb_md5fepw extension by Kraft Bernhard)</li>
<li>###PREFIXID### - Same as class name ('tx_newloginbox_pi1') usefull to get a unique classname prefix</li>
<li>###REDIRECT_URL### - URL of redirection upon login</li>
<li>###STORAGE_PID### - explicit enough I guess (if not : id of the page where user are stored)</li>
<li>###STATUS_HEADER### - depends of the template</li>
<li>###STATUS_MESSAGE### - depends of the template</li>
</ul>
<h2>Wrap parts</h2>
<ul>
<li>###HEADER_VALID### - usefull to define what to show/hide</li>
<li>###MESSAGE_VALID### - usefull to define what to show/hide</li>
<li>###FORGOTP_VALID### - usefull to define what to show/hide</li>
<li>###PERMALOGIN_VALID### - usefull to define what to show/hide</li>
</ul>
<h2>felogin Language Markers (see pi/locallang.xml)</h2>
<ul>
<li>###EMAIL_LABEL### - corresponding to 'your_email'</li>
<li>###FORGOT_PASSWORD### - corresponding to 'forgot_password'</li>
<li>###FORGOT_PASSWORD_BACKTOLOGIN### - corresponding to 'forgot_password_backToLogin'</li>
<li>###FORGOT_PASSWORD_ENTEREMAIL### - corresponding to 'forgot_password_enterEmail'</li>
<li>###LOGIN_LABEL### - corresponding to 'login'</li>
<li>###PASSWORD_LABEL### - corresponding to 'password'</li>
<li>###SEND_PASSWORD### - corresponding to 'send_password'</li>
<li>###USERNAME_LABEL### - corresponding to 'username'</li>
</ul>
<!--###TEMPLATE_LOGIN###-->
###STATUS_HEADER###
<!-- ###LOGIN_FORM### -->
<form action="###ACTION_URI###" target="_top" method="post" onsubmit="###ON_SUBMIT###">
<fieldset>
<div class="login_input">
<label for="user">###USERNAME_LABEL###</label>
<input type="text" id="user" name="user" value="" />
</div>
<div class="login_input">
<label for="pass">###PASSWORD_LABEL###</label>
<input type="password" id="pass" name="pass" value="" />
</div>
<!--###PERMALOGIN_VALID###-->
<div class="login_input">
<label for="permalogin">###PERMALOGIN###</label>
<input name="permalogin" value="0" type="hidden" ###PERMALOGIN_HIDDENFIELD_ATTRIBUTES### id="permaloginHiddenField" />
<input name="permalogin" value="1" type="checkbox" ###PERMALOGIN_CHECKBOX_ATTRIBUTES### id="permalogin" onclick="document.getElementById('permaloginHiddenField').disabled = this.checked;" />
</div>
<!--###PERMALOGIN_VALID###-->
<div class="login_button">
<input type="submit" name="submit" value="###LOGIN_LABEL###" />
</div>
<div class="felogin-hidden">
<input type="hidden" name="logintype" value="login" />
<input type="hidden" name="pid" value="###STORAGE_PID###" />
<input type="hidden" name="redirect_url" value="###REDIRECT_URL###" />
###EXTRA_HIDDEN###
</div>
</fieldset>
</form>
<!--###FORGOTP_VALID###-->
<p><!--###FORGOT_PASSWORD_LINK###-->###FORGOT_PASSWORD###<!--###FORGOT_PASSWORD_LINK###--></p>
<!--###FORGOTP_VALID###-->
<!-- ###LOGIN_FORM### -->
<!--###TEMPLATE_LOGIN###-->
<!--###TEMPLATE_LOGOUT###-->
<form action="###ACTION_URI###" target="_top" method="post">
<fieldset>
<div class="login_button">
<input type="submit" name="submit" value="###LOGOUT_LABEL###" />
</div>
<div class="felogin-hidden">
<input type="hidden" name="logintype" value="logout" />
<input type="hidden" name="pid" value="###STORAGE_PID###" />
</div>
</fieldset>
</form>
<!--###TEMPLATE_LOGOUT###-->
<!--###TEMPLATE_FORGOT###-->
###STATUS_HEADER###
<!-- ###FORGOT_FORM### -->
<form action="###ACTION_URI###" method="post">
<fieldset>
<legend>###LEGEND###</legend>
<div class="login_input">
<label for="###FORGOT_EMAIL###">###EMAIL_LABEL###</label>
<input type="text" name="###FORGOT_EMAIL###" id="###FORGOT_EMAIL###" />
</div>
<div class="login_button">
<input type="submit" name="submit" value="###SEND_PASSWORD###" />
</div>
</fieldset>
</form>
<!-- ###FORGOT_FORM### -->
<p>###BACKLINK_LOGIN### </p>
<!--###TEMPLATE_FORGOT###-->
Das Typoscript, aus diesem Posting, ist folgendes:
plugin.tx_felogin_pi1 {
storagePid = 118
templateFile = fileadmin/templates/felogin/fe_login.html
preserveGETvars = all
wrapContentInBaseClass = 0
showForgotPasswordLink = 0
showPermaLogin = 0
welcomeHeader_stdWrap.wrap = <div class="LoginName">|</div>
logoutHeader_stdWrap.wrap = <div class="LogoutName">|</div>
#redirect
redirectMode = userLogin,groupLogin,login,logout
redirectFirstMethod = 1
redirectPageLogin = 1
redirectPageLogout = 1
}
lib.login = COA
lib.login < plugin.tx_felogin_pi1
Mir geht es nun um diese Zeilen:
welcomeHeader_stdWrap.wrap = <div class="LoginName">|</div>
logoutHeader_stdWrap.wrap = <div class="LogoutName">|</div>
In meinem Template existieren diese Angaben nicht, wo müssen diese hin, damit diese Ausgabe klappt?
Denn bei mir wird nur das Benutzerformular angezeigt und zum Beispiel nach dem Login nur der Abmeldebutton.
Wie kann man das Formular anpassen, dass man z.B. den Usernamen nach Login sieht und vor dem Login auch noch z.B. "Kennwort vergessen?" sieht?
Bitte um Rat.