[TYPO3] 2-Column page content

rocky rockyo at max-source.com
Wed Feb 8 19:09:10 CET 2006


Peter Russ wrote:
> rocky schrieb:
> 
>> Hey,
>>
>> I used the code listed below to to creat 2 column page.Which will show 
>> 2 column if there's content in Right column, otherwise only on column 
>> is shown. But the code made the normal column cotent override by the 
>> right column under page module. No matter what only one column is 
>> shown on my page.
>>
>> Below is my code
>> ####begin######
>> #left content
>> temp.content<styles.content.get
>> temp.content.stdWrap.wrap=<div id="content">|</div>
>> ##right cotent##
>> temp.right<styles.content.getRight
>> temp.right.stdWrap.required=1
>> temp.right.stdWrap.innerWrap=<div id="right"><div 
>> id="content_right">|</div></div>
>> #place the left content as cObject before the right content
>> temp.right.stdWrap.preCObject < styles.content.get
>> temp.right.stdWrap.preCObject.wrap=<div id="content_left">|</div>
>> temp.content.stdWrap.override.cObject<temp.right
>> ####end#############
>>
>> In the main template the code is
>> ########
>> page{
>> ....
>> 70<temp.content
>> ....
>> }
>> ###########
>> I've worked on this for hours. I think the stdWrap.preCObject is not 
>> quite right. If you could give me some hint that will be great!
> 
> 
> Reduce it and make it less complex. Just start with a COA, add left and 
> if right is available add that. Bingo.
> 
> Regs. Peter.
> 
> 


Hey Peter,

Thank you very much for your help:) Your suggestion is much better than 
my idea.

Does anyone have any idea bout my code up there?

Thanks a lot!
Rocky



More information about the TYPO3-english mailing list