Guten Morgen allerseits
Bis jetzt habe ich meine Formulare immer so erzeugt, dass ich den Quellcode, den Typo3 lieferte kopiert und dann als Textobjekt wieder erzeugt habe. Funktioniert gut und macht das Stylen mit CSS recht einfach.
Nun komm ich aber beim Postform des tt_board nicht weiter. Es wird zwar was gerendert, aber nicht das was ich im folgenden Code stehen habe:
plugin.tt_board_tree {
postform >
postform.value = 145
postform.wrap (
<form action="index.php?id=|&no_cache=1" name="c513fd8992acbf63fd0a18c18bf4afc9" enctype="multipart/form-data" method="post" onsubmit="return validateForm('c513fd8992acbf63fd0a18c18bf4afc9','data%5Btt_board%5D%5BNEW%5D%5Bsubject%5D,Thema%3A,data%5Btt_board%5D%5BNEW%5D%5Bmessage%5D,Mitteilung%3A,data%5Btt_board%5D%5BNEW%5D%5Bauthor%5D,Name%3A,data%5Btt_board%5D%5BNEW%5D%5Bemail%5D,Email%3A','','','')">
<div style="display:none;">
<input type="hidden" name="tt_board_uid" value="0" />
<input type="hidden" name="data[tt_board][NEW][pid]" value="|" />
<input type="hidden" name="data[tt_board][NEW][parent]" value="0" />
<input type="hidden" name="locationData" value="|:" />
</div>
<div id="mailform_forum">
<p class="csc-form-label-req">Thema:</p>
<input type="text" name="data[tt_board][NEW][subject]" value="" class="thema" /><br class="clear">
<p class="csc-form-label-req">Mitteilung:</p>
<textarea name="data[tt_board][NEW][message]" class="mitteilungen" wrap="virtual"></textarea><br class="clear" />
<p class="csc-form-label-req">Name:</p>
<input type="text" name="data[tt_board][NEW][author]" value="" class="name" /><br class="clear" />
<p class="csc-form-label-req">E-Mail:</p>
<input type="text" name="data[tt_board][NEW][email]" value="" class="email" /><br class="clear" />
<p class="csc-form-label">Benachrichtigung:<BR>bei Antwort(en):</p>
<input type="checkbox" value="1" name="data[tt_board][NEW][notify_me]" class="benachrichtigung" /><br class="clear" />
<p class="csc-form-label"> </p>
<input type="submit" name="formtype_db" value="Diskussion eröffnen" class="submitbutton" /><br class="clear" />
</div>
</form>
)
postform_newThread < .postform
}
Mache ich einen Überlegungsfehler oder funktioniert vielleicht das Postform des tt_board ganz anders als das mailform?
Gruss Marco