[TYPO3-content-rendering] TYPO3 3.8.0 XHTML strict mailform

Rupert Germann rupi at gmx.li
Thu Jun 2 14:43:54 CEST 2005


Hi,

Ben sponsored me to fix this. 
What I did until now can be seen here:
http://typo3.lehmano.de/news/form-test/

no html cleners used. The form validates against XHTML strict and XHTML 1.1

setup for this form:
tt_content.mailform.20 {
  noWrapAttr=1
  accessibility = 1
  REQ = 1
  layout = ###LABEL### ###FIELD###<br />
  COMMENT.layout = ###LABEL###
  RADIO.layout = ###LABEL### <fieldset class="mf-radio"
id="testform_radio">###FIELD###</fieldset><br />
  LABEL.layout = ###LABEL### <span class="mf-label">###FIELD###</span><br />
  labelWrap.wrap = |
  commentWrap.wrap = |
  radioWrap.wrap = <label>|</label>
  REQ.labelWrap.wrap = |
  stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset>
  params.radio = class="mf-radio"
  params.check = class="mf-check"
  params.submit = class="mf-submit"
}

for the final version I'll make the form id configurable (on the testsite
the form id is hardcoded "testform")

improvement suggestions ?


ben van 't ende [netcreators] wrote:
> I have been testing a bit with the latest mailform in TYPO3 3.8.0. I
> can't really get enthousiastic about it.

> 1. attribute "name" in form element

is "id" now
 
> 2. attribute "wrap" in textarea element

can be removed in TYPO3 3.8.0 by setting "noWrapAttr=1"
 
> [accessibility = 1]
> 3. id's for radiobuttons are not unique. (don't now how this should
> actually be) who knows?

radiobutton ids are now unique (fieldname + value)
 
> 4. incredible long hashed id's. there is a bug describing an issue with
> square brackets here:  http://bugs.typo3.org/view.php?id=1075 Martin
> just told me he wants to patch that for 3.8.1

the form id will be configurable and the field ids are the fieldnames now.
 
greets
rupi




More information about the TYPO3-project-content-rendering mailing list