[TYPO3] content.space

Bas van der Togt b.vandertogt at profinit.com
Mon Jul 17 20:56:23 CEST 2006


hm after testing its not working yet for 100%.
He've set 0|0 to all the columns. Do you know why?
This is my code:

# Column content spacing
tt_content.stdWrap.space >
tt_content.stdWrap.spaceBefore >
tt_content.stdWrap.spaceAfter >
tt_content.stdWrap.space.useDiv = 1
tt_content.stdWrap.spaceBefore.cObject = CASE
tt_content.stdWrap.spaceBefore.cObject {
     key.field = colPos
     default = 123
     1 = 0
     2 = 0
     3 = 0
}
tt_content.stdWrap.spaceAfter.cObject = CASE
tt_content.stdWrap.spaceAfter.cObject {
     key.field = colPos
     default = 123
     1 = 10
     2 = 0
     3 = 0
}

cheers,
Bas

JoH schreef:
>>tt_content.stdWrap.space >
>>tt_content.stdWrap.spaceBefore.cObject = CASE
>>tt_content.stdWrap.spaceBefore.cObject {
>>    key.field = colPos
>>    default = 123
>>    1 = 234
>>    2 = 345
>>    3 = 456
>>}
>>tt_content.stdWrap.spaceAfter.cObject = CASE
>>tt_content.stdWrap.spaceAfter.cObject {
>>    key.field = colPos
>>    default = 123
>>    1 = 234
>>    2 = 345
>>    3 = 456
>>}
>>
>>Set the values according to the desired spacing for normal (default),
>>left(1), right(2) and border(3)
>>If you don't want clear.gif you should set this line in addition:
>>
>>tt_content.stdWrap.space.useDiv = 1
>>
>>Not tested, but should be working
> 
> 
> Sorry forgot two lines, to clear the default settings for spaceBefore and
> spaceAfter
> 
> tt_content.stdWrap.space >
> tt_content.stdWrap.spaceBefore >
> tt_content.stdWrap.spaceAfter >
> tt_content.stdWrap.space.useDiv = 1
> tt_content.stdWrap.spaceBefore.cObject = CASE
> tt_content.stdWrap.spaceBefore.cObject {
>     key.field = colPos
>     default = 123
>     1 = 234
>     2 = 345
>     3 = 456
> }
> tt_content.stdWrap.spaceAfter.cObject = CASE
> tt_content.stdWrap.spaceAfter.cObject {
>     key.field = colPos
>     default = 123
>     1 = 234
>     2 = 345
>     3 = 456
> }
> 
> This one should be complete now.
> 
> Joey
> 



More information about the TYPO3-english mailing list