[TYPO3] adding class to TS form object
abhijit kakade
abhikakade at gmail.com
Sun Mar 30 13:22:32 CEST 2008
Hello Onkar,
To add class to typoscript form object you can use .params
property
In your case you can achive it like
lib.breadcrumb = FORM
lib.breadcrumb {
dataArray {
10.type = tx_myext_pi1[string]=input,10
20.type = id=hidden
20.value = 600
30.type = L=hidden
30.value.data = GPVar:L
40.type = tx_myext_pi1[submit]=submit
40.value = People
}
type = index.php
*params.input = class="small"*
layout = ###FIELD###
method = GET
stdWrap.wrap = |
}
--
Abhijit Kakade
LAMP Developer,
MCP,CCNA
Mob : +91-9923729250
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 29 Mar 2008 16:37:15 +0530
> From: onkar marathe <onkar.marathe at hotmail.com>
> Subject: [TYPO3] adding class to TS form object
> To: <typo3-english at lists.netfielders.de>
> Message-ID:
> <mailman.13632.1206788846.5943.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hello all
>
> I added typoscript form object as shown below but was unable to apply
> class to it.
> I tried adding params to input type () but does not work.
>
> lib.breadcrumb = FORM
> lib.breadcrumb {
> dataArray {
> 10.type = tx_myext_pi1[string]=input,10
> 20.type = id=hidden
> 10.params = class="small"
> 20.value = 600
> 30.type = L=hidden
> 30.value.data = GPVar:L
> 40.type = tx_myext_pi1[submit]=submit
> 40.value = People
> }
> type = index.php
> layout = ###FIELD###
> method = GET
> stdWrap.wrap = |
> }
>
>
> -Onkar
>
>
More information about the TYPO3-english
mailing list