[TYPO3] How can I add a legend tag to the contact formular?
news.netfielders.de
ercan_karadeniz at hotmail.com
Tue Aug 8 21:45:50 CEST 2006
Hi Graham,
many thanks for the tip!
I will try it.
Regards,
Ercan
"Graham Solomon" <graham.solomon at powys.gov.uk> schrieb im Newsbeitrag
news:mailman.1.1155045641.1490.typo3-english at lists.netfielders.de...
> news.netfielders.de wrote:
> Hi Ercan,
>
> I use the TypoScript below to make our forms accessible, you might want to
> try pasting it into your template setup field. It will add labels,
> fieldsets and legends.
>
> ------------
> ######################### Make MailForm cObj Accessible.
> tt_content.mailform.20 {
> accessibility = 1
>
> layout (
> <tr>
> <td class="csc-form-labelcell">###LABEL###</td><td
> class="csc-form-fieldcell">###FIELD###</td>
> </tr>
> )
> labelWrap.wrap = <p class="csc-form-label">|</p>
>
> REQ = 1
> REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
>
> COMMENT.layout = <tr><td colspan="2"
> class="csc-form-commentcell">###LABEL###</td></tr>
> commentWrap.wrap = <p class="csc-form-comment">|</p>
>
> target = {$styles.content.mailform.target}
>
> goodMess = {$styles.content.mailform.goodMess}
> badMess = {$styles.content.mailform.badMess}
>
> redirect.field = pages
> redirect.listNum = 0
> recipient.field = subheader
>
> data = field : bodytext
> locationData = 1
>
> RADIO.layout (
> <tr>
> <td colspan="2"
> class="csc-form-fieldcell"><fieldset><legend>###LABEL###</legend>###FIELD###</fieldset></td>
> </tr>
> )
> radioWrap.wrap = <span class="csc-form-radio">|</span>
>
> stdWrap {
> wrap (
> <fieldset style="border: 0; padding: 0;">
> <table border="0" cellspacing="1" cellpadding="1"
> class="csc-mailform" summary="Email Form">|</table>
> </fieldset>
> )
>
> editIcons = tt_content: bodytext, pages, subheader
> editIcons.iconTitle.data =
> LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.form
>
> prefixComment = 2 | Mail form inserted:
> }
> }
> ----------------
>
>
> Graham
>> Hello List,
>>
>> I'm trying to build contact formular like in :
>> http://www.pixy.cz/blogg/clanky/css-fieldsetandlabels.html
>>
>>
>> But I have no idea, how can I add a legend tag to the fieldset tag with a
>> value.
>>
>> Like the sample below.
>> <form>
>> <fieldset>
>> <legend>Subscription info</legend>
>> <label for="name">Username:</label>
>> <input type="text" name="name" id="name" />
>> <br />
>> <label for="mail">E-mail:</label>
>> <input type="text" name="mail" id="mail" />
>> <br />
>> <label for="address">Address:</label>
>> <input type="text" name="address" id="address" size="40" />
>> </fieldset>
>> </form>Has anyone an idea?
>> Many thanks in advanced.
>>
>> Regards,
>> Ercan Karadeniz
>
More information about the TYPO3-english
mailing list