Zum Inhalt springen

tt_board / mailform Formular Stylen ?

Erstellt am 8. Mai 2007 · 1 Antwort · letzte Antwort am 30. Mai 2007

Tags: HTML & CSS, Frage

M.​V.​ ·

Hallo zusammen !

Ich sitze jetzt seit 3 Tagen an einem Problem mit tt_board. #angry#

Die Extension ist soweit konfiguriert und das Forum an sich läuft wunderbar.
Das Problem ist nur das ich die Eingabe Felder um ein Neues Posting zu erstellen nicht formatieren kann.

Will heissen das die Eingabe Felder Direkt neben den Bezeichnungen selbiger stehen.

Betreff : Eingabe-Feld

Nachricht: Eingabe - Feld

Ich möchte es aber so haben

Betreff:
Eingabe - Feld

Nachricht:
Eingabe - Feld

Ich habe mittlerweile herausgefunden das die Anweisungen für das ganze Mailform Formular im TypoScript Obejkt Browser zu finden sind.
Wenn ich aber da an den Layouts des Formulars etwas von hand änder verschiess ich mir die ganze seite.

Über CSS kann ich es auch nicht konfigurieren weil keine IDs vergeben sind usw.

Kleiner ausschnitt aus dem Mailform Quelltext.

<form action="index.php?id=46&amp;no_cache=1"id="mailform" name="mailform" enctype="multipart/form-data" method="post" target="page" onsubmit="return validateForm('mailform','data%5Btt_board%5D%5BNEW%5D%5Bsubject%5D,Subject%3A,data%5Btt_board%5D%5BNEW%5D%5Bmessage%5D,Message%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 name="tt_board_uid" id="mailformtt_board_uid" value="44" type="hidden"><input name="data[tt_board][NEW][pid]" id="mailformdata[tt_board][NEW][pid]" value="46" type="hidden"><input name="data[tt_board][NEW][parent]" id="mailformdata[tt_board][NEW][parent]" value="44" type="hidden"><input name="locationData" value="46:" type="hidden"></div>
<!-- Mail form inserted: [begin] -->

<fieldset class="csc-mailform"><div class="csc-mailform-field"><label for="mailformdata[tt_board][NEW][subject]">Subject:</label> <input name="data[tt_board][NEW][subject]" id="mailformdata[tt_board][NEW][subject]" size="40" value="" type="text"></div><div class="csc-mailform-field"><label for="mailformdata[tt_board][NEW][message]">Message:</label> <textarea name="data[tt_board][NEW][message]" id="mailformdata[tt_board][NEW][message]" cols="40" rows="5"></textarea></div><div class="csc-mailform-field"><label for="mailformdata[tt_board][NEW][author]">Name:</label> <input name="data[tt_board][NEW][author]" id="mailformdata[tt_board][NEW][author]" size="40" value="Marcel Veronetzki" type="text"></div><div class="csc-mailform-field"><label for="mailformdata[tt_board][NEW][​email]">Email:</label> <input name="data[tt_board][NEW][​email]" id="mailformdata[tt_board][NEW][​email]" size="40" value="veronetzki@smartthings.de" type="text"></div><div class="csc-mailform-field"><label for="mailformdata[tt_board][NEW][notify_me]">Notify me<br>by reply:</label> <input value="1" name="data[tt_board][NEW][notify_me]" id="mailformdata[tt_board][NEW][notify_me]" class="csc-mailform-check" type="checkbox"></div><div class="csc-mailform-field"> <input name="formtype_db" id="mailformformtype_db" value="Post Reply" class="csc-mailform-submit" type="submit"></div></fieldset>
<!-- Mail form inserted: [end] -->

</form>
<!-- Plugin inserted: [end] -->

Ich blicke langsam nicht mehr durch und bin mit meinem Latein am ende.

Wies eventuell jemand Rat ?? 😢 #angry#

M.​V.​ ·

Selbst ist der Mann.

Hab es selber gelöst.

Hier die Auflösung:
Das kommt ins Setup vom Template.

####################
#plugin forum
####################

plugin.tt_board_list.postform_newThread.dataArray.10.label = Biete / Suche:
plugin.tt_board_list.postform_newThread.dataArray.20.label = Nachricht:
plugin.tt_board_list.postform_newThread.dataArray.50.label = Thema abonnieren
plugin.tt_board_list.postform_newThread.dataArray.60.value = Neues Biete / suche Thema starten
plugin.tt_board_list.postform_newThread.layout = <br />###LABEL###<br />###FIELD###<br />
plugin.tt_board_list.postform.dataArray.10.label = Thema:
plugin.tt_board_list.postform.dataArray.20.label = Nachricht:
plugin.tt_board_list.postform.dataArray.50.label = Thema abonnieren
plugin.tt_board_list.postform.dataArray.60.value = Antwort erstellen
plugin.tt_board_list.postform.layout = <br />###LABEL###<br />###FIELD###<br />
plugin.tt_board_list.postform_newThread.stdWrap.wrap = <h2>Neues Biete / Suche Thema starten</h2> |
plugin.tt_board_list.postform.stdWrap.wrap = <h2>Antworten</h2> |
plugin.tt_board_list.postform.dataArray.10.type = *data[tt_board][NEW][subject]=input,40
plugin.tt_board_list.postform.dataArray.20.type = *data[tt_board][NEW][message]=textarea,39
plugin.tt_board_list.postform_newThread.dataArray.10.type = *data[tt_board][NEW][subject]=input,40
plugin.tt_board_list.postform_newThread.dataArray.20.type = *data[tt_board][NEW][message]=textarea,39