[Typo3] Mailform Radiobuttons horizontical

Bill Alexy bill at psiberware.com
Wed Jan 26 19:13:42 CET 2005


Thanks for the this answer Cristiano. It answers a question I've had for 
a while.

Regards,
Bill Alexy

Cristiano Santeramo wrote:

>Hi  georg
>
>To make radiobuttons horizontal aligned, I used the following method;
>before all I changed layout for radiobuttons in TypoScript to make radiobuttons wrapped in a different class:
>
>tt_content.mailform.20.RADIO.layout = <tr><td class="csc-form-labelcell">###LABEL###</td><td class="csc-form-fieldradiocell">###FIELD###</td></tr>
>
>---Note the "csc-form-fieldradiocell" class before of  ###FIELD### instead of the default "csc-form-fieldradiocell"---
>
>Then I put this in my css:
>
>.csc-form-fieldradiocell br{
>  display:none;
>}
>
>and works great!
>
>
>- Cristiano Santeramo (jigante)
>
>-----------------------
>This thread is located in the archive at this URL:
>http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/22230/
>					
>  
>
>>Hi Rob,
>>
>>Thanks for your hint; however the splitter allows only to align multiple
>>form fields horizontically;
>>So in the case of radio bullets this would again look like:
>>
>>question1      o      option1      question2      o      option1
>>o      option2                     o      option2
>>o      option3                     o      option3
>>
>>Our aim though is to align the radio-butttons of ONE question
>>horizontically, eg:
>>
>>question1      o  option1      o  option2      o  option3
>>question2      o  option1      o  option2      o  option3
>>question3      o  option1      o  option2      o  option3
>>
>>And this seems to be impossible without changing the core, as that is WHERE
>>the <BR> is added ... and btw. there is even more "hardcoded formatting" in
>>the form functions of /tslib/class.tslib_content.php
>>
>>Anybody else for another idea, solving the above ?
>>
>>Thanks, regards georg
>>
>>
>>At 15:08 01.09.2003, rob_t3_list wrote:
>>    
>>
>>>Hey georg,
>>>
>>>this is some TS coding for splitting your buttoons horizontal i found on the
>>>t3.org site.
>>>
>>>downside is that it will place the second horizontal field next to the first
>>>field. just place it in tour typosetup and see what it does.:
>>>
>>>temp.splitter {
>>>token = §
>>>cObjNum = 1
>>>1.current = 1
>>>1.wrap = </tr><tr>|
>>>}
>>>
>>>tt_content.mailform.20.data.split < temp.splitter
>>>
>>>greetz
>>>rob
>>><georg_ml at kuehnberger.com> wrote in message
>>>news:mailman.1062371522.28326.typo3-english at lists.netfielders.de...
>>>      
>>>
>>>>Hi all,
>>>>
>>>>The aim is to use the formmail to output a list of radio buttons, being
>>>>aligned horizontically, rather than each below the other;
>>>>Unfortunate the vertical design of the radio buttons seems to be hardcoded
>>>>by a <BR> in:
>>>>
>>>>/tslib/class.tslib_content.php
>>>>line 1256 ....
>>>>
>>>>for($a=0;$a<count($items);$a++) {
>>>>$option.= '<input type="Radio" name="'.$confData["fieldname"].'"
>>>>value="'.$items[$a][1].'"'.(!strcmp($items[$a][1],$default)?"
>>>>checked":"").''.$addParams.'>';
>>>>$option.= $this->stdWrap(trim($items[$a][0]), $conf["radioWrap."]);
>>>>$option.= "<BR>";
>>>>}
>>>>
>>>>Now changing the core would work, but is not really desireable;
>>>>
>>>>Question: Anybody a better idea on how to override this <BR> ?
>>>>
>>>>Thanks in advance, regards georg
>>>>
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>Typo3-english mailing list
>>>Typo3-english at lists.netfielders.de
>>>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>      
>>>
>>_______________________________________________
>>Typo3-english mailing list
>>Typo3-english at lists.netfielders.de
>>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>>    
>>
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
>  
>



More information about the TYPO3-english mailing list