Optimierte Kommentare in Textpattern
Der Umstieg von Wordpress (WP) auf Textpattern (txp) läuft ganz gut, txp ist etwas schlanker und systematisch sauberer als WP aufgebaut. Manche Dokumentation ist noch verstreut, auch weil die neue Version 4.0 noch nicht lange verfügbar ist (Version 4.0 ist eigentlich die erste richtige Release, 4.0 deshalb weil Gründer Dean Allen bald 40 wird ;).
Ein Übel auch noch in Version 4.0: Kommentarfelder sind nicht mit Label-Tags aufgebaut.
Abhilfe schafft: Textpattern: Accessible comments , das ich noch mit Tableless Forms fusioniert habe.
Mein Baustein fürs comment_form ohne Tabellen und mit Labels schaut jetzt so aus:
<h6>Kommentar verfassen:</h6>
<label for="name">* Name</label>
<txp:comment_name_input /><br />
<label for="email">* Email</label>
<txp:comment_email_input /><br />
<label for="web">www</label>
<txp:comment_web_input /><br />
<label for="message">* Kommentar</label>
<txp:comment_message_input /><br />
<txp:comment_preview />
<txp:comment_submit /><br />
<span class="remember"><txp:comment_remember /></span><br />
<span class="small">(* Pflichtfelder)</span>
und der zugehörige css-Block:
#txpCommentInputForm label { display: block; }#txpCommentInputForm input { display:block; width: 50%; float: left; margin-bottom: 10px; }#txpCommentInputForm textarea { display: block; width: 98%; height:160px; margin-bottom: 10px; }#txpCommentInputForm input.button { width:80px; }#txpCommentInputForm br { clear: left; }.small { font-size:11px;}.remember { width:95px; margin:0; padding:0; float:left; display:block; } .remember input {width:24px !important;}
(wenn mir jemand erzählt, wie man hier Code als Code einbinden kann, dann mach ich das auch schöner als in einer abstandslosen Wurst)
Abgelegt unter: Textpattern Wordpress |

Kommentare:
« Weblogs zu den Landtagswahlen in Wien, Steiermark und Burgenland | START | Weblog nach Relevanz aufgebaut samt Wechsel von Wordpress auf Textpattern »