[TYPO3] Wrapping Column Fields

Gilles Deacur tronno22556 at gmail.com
Sat Jun 10 02:51:09 CEST 2006


Gilles Deacur wrote:
> Gilles Deacur wrote:
>> Gilles Deacur wrote:
>>> I've searched the database and Google and can't find the answer.  
>>> I've been working on this for 3 days.
>>>
>>>
>>> I have a template laid out in TV into 2 columns (field_side_column), 
>>> (field_main_column) plus the menu field.
>>>
>>>
>>> Within the main column, I have other FCE defined.
>>>
>>>
>>>
>>> My template should have the main column wrapped in a <div 
>>> class="main_column"> | </div> and the side column wrapped in a <div 
>>> class="side_column"> | </div>.
>>>
>>>
>>>
>>> I've tried so many variations that I'd end up with a post too long to 
>>> mention.
>>>
>>>
>>> Could I get some help please?
>>
>>
>> # Default PAGE object:
>> page = PAGE
>> page.typeNum = 0
>> page.10 = HTML
>> page.10.value = field:field_main_content
>> page.10.value.stdWrap = <DIV class="xxxxxx"> | </DIV>
>> page.100 = USER
>> page.100.userFunc = tx_templavoila_pi1->main_page
>>
>>
>> Does nothing but put "field_main_content" within the template HTML.
>>
> 
> This does (variation 1,323) nothing:
> 
> # Default PAGE object:
> page = PAGE
> page.typeNum = 0
> page.10 = HTML
> page.10.data = field:field_main_content
> page.10.data.stdWrap = <DIV class="xxxxxx"> | </DIV>
> page.100 = USER
> page.100.userFunc = tx_templavoila_pi1->main_page
> 
> Am I even close?


This:

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 = COA
page.10.20 = COA
page.10.20 {
10 = TEXT
10.field = field_side_column
10.wrap = <DIV class="xxxxxx"> | </DIV>
}
page.100 = USER
page.100.userFunc = tx_templavoila_pi1->main_page

Just puts
<DIV class="xxxxxx"></DIV>
right below the body tag, and not in the spot I mapped for 
"field_main_content"



More information about the TYPO3-english mailing list