[TYPO3] mailform <form> tag: wrap it or add class="someclass"
Darko Jr. Gonzalez
jkokino at gmail.com
Thu May 29 23:36:03 CEST 2008
Hello
Sure I can use the id. Was just wondering and wanted to confirm whats
possible what not.
Thanks
On Thu, May 22, 2008 at 12:08 AM, Christopher Torgalson <
bedlamhotel at gmail.com> wrote:
> Hi,
>
> On Wed, May 21, 2008 at 11:43 PM, Darko Jr. Gonzalez <jkokino at gmail.com>
> wrote:
> > Hey folks
> >
> > I am trying to add to the mailform <form> tag either:
> > - class="someclass" instead of just id which comes from formName
> > and/or
> > - wrap the whole form with for example <junior>|</junior>
> >
> > I tried:
> > stdWrap.wrap = <junior>|</junior>
> > but it is wrapping pretty much everything within the <form> tags, not
> > outside (outer) wrapping.
> >
> > this is what I have in ts setup:
> > ##################################################
> > tt_content.mailform.20{
> > accessibility = 1
> > REQ = 1
> > noWrapAttr = 1
> > formName = theForm
> > dontMd5FieldNames = 1
> > # the () syntax in the wraps makes the html source a bit more
> readable
> > layout (
> > <p>###LABEL###</p> ###FIELD###
> > )
> > COMMENT.layout (
> > <p>###LABEL###</p>
> > )
> > RADIO.layout (
> > <p>###LABEL###</p>
> > #<fieldset class="mf-radio"
> id="theForm_radio">###FIELD###</fieldset>
> > )
> > LABEL.layout = <p>###LABEL###</p> ###FIELD###
> > labelWrap.wrap = |
> > commentWrap.wrap = |
> > radioWrap.wrap = <label>|</label>
> > REQ.labelWrap.wrap = |
> > #params = class="cssform"
> > params.radio =
> > params.check =
> > params.submit =
> > stdWrap.wrap = <junior>|</junior>
> > }
> >
> > Thanks for looking
>
>
> FORM cObject should (but does not) have a wrap for the whole object.
> You could redefine the whole of tt_content.mailform.20 as a COA with a
> FORM cObject inside, but I don't understand what you need. The TS you
> provide is the mailform element; if there is some value in "formName,"
> then ALL mailforms will have the same id. Why can't you use that for
> styling?
>
>
>
> --
> Christopher Torgalson
> http://www.typo3apprentice.com/
>
More information about the TYPO3-english
mailing list