Hi Leute,
mein System:
Typo 3.7.0
Template Auto-Parser
Ich habe den Code
[usergroup = *]
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<form action="index.php?id= | " method="post">
<table width=150 border="0" cellpadding="0" cellspacing="0">
<tr><td align="right" nowrap> Login: <b><!--###USERNAME###--> </b> <input type="image"
src="fileadmin/pmf/pix/exit.gif" width="18" height="18" alt="Logout" title="Logout" border="0" align="absbottom"></td>
</tr> </table> <input type="hidden" name="logintype" value="logout" > </form>
)
[else]
temp.10 = TEXT
temp.10.data = TSFE : id
temp.10.wrap (
<form action="index.php?id=<b>446</b>" method="post">
<table width=150 border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<input name="user" type="text" id="user" title="Benutzername" onfocus="if
(this.value==this.defaultValue) this.value=''" value="" size="4" />
<input name="pass" type="password" id="pass" title="Passwort" onfocus="if
(this.value==this.defaultValue) this.value=''" value="" size="4" >
<input name="image" type="image" title="Login" src="fileadmin/pmf/pix/lock.gif" alt="Login"
align="absbottom" width="18" height="18" border="0"> </td>
<input type="hidden" name="redirect_url" value="index.php?id= | " />
</tr>
</table> <input type="hidden" name="logintype" value="login" > <input type="hidden" name="pid"
value="<b>448</b>" >
</form>
)
[global]
von Typ03faq.net übernommen und ins Setup des Templates eingetragen.
Im workOnSubpart Bereich steht folgendes:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
#subparts.content = TEXT
#subparts.content.value = Hallo!
# Substitute the ###content### subpart with some example content:
subparts.inhalt < styles.content.get
subparts.headline < styles.header.get
subparts.navigation < temp.navigation
marks.LOGIN < temp.10
}
Habe in mein template den Marker gesetzt.
<!-- ###LOGIN### -->
<form action="http://xxxx/index.php?id=26" method="post">
<table cellpadding="0" cellspacing="0" id="login_menu" width="100%">
<tr><td colspan="2"><strong>Teilnehmerbereich</strong></td></tr>
<tr><td>Mitgliedsnr.:</td><td><input type="text" name="user" style="width:100px "></td></tr>
<tr><td>Passwort:</td><td><input type="password" name="pass" style="width:100px ">
<input type="hidden" name="logintype" value="login" />
<input type="hidden" name="pid" value="25" />
<input type="hidden" name="redirect_url" value="" /></td></tr>
<tr><td colspan="2">Sie sind nicht eingeloggt. <a href="javascript:document.forms[1].submit();"><img src="images/go.gif" style="margin:0px; vertical-align:text-bottom" border="0" /></a></td></tr>
</table></form>
<!-- ###LOGIN### END-->
Leider zeigt er mir nicht den Code aus dem Setup an sondern meinen Standard Login aus dem Template.
Kann mir jemand sagen was ich falsch mache?
Vielen Dank schon mal im voraus.
Gruß Kristian