Project

General

Profile

Actions

Bug #17407

closed

get rid of clear.gif with space

Added by Steffen Kamper almost 17 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-06-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

when using spaceBefore / spaceAfter in CE there is no chance to get rid of clear.gif

As this is in tslib_content:
if ($spaceBefore || $spaceAfter) {$content=$this->wrapSpace($content, $spaceBefore.'|'.$spaceAfter);}

it will wrapped with the clear.gif any time.

So there is no alternative way like Joey presents in newsgroup:

tt_content.stdWrap { ### spaceBefore ###
prepend = TEXT
prepend.field = spaceBefore
prepend.wrap = <div style="clear:both;height:|px;margin:0;font-size:0px;">
prepend.if.isTrue.field = spaceBefore

  1. spaceAfter ###
    append = TEXT
    append.field = spaceAfter
    append.wrap = <div style="clear:both;height:|px;margin:0;font-size:0px;">
    append.if.isTrue.field = spaceAfter
  1. content.space ###
    outerWrap.cObject = COA
    outerWrap.cObject {
    10 = TEXT
    10 {
    outerWrap =<div|>
    value = {$content.space}
    split {
    token = |
    cObjNum = 1
    1.current = 1
    1.noTrimWrap = | |px 0px|
    }
    noTrimWrap = | style="margin:|;"|
    }
    20 = TEXT
    20.value = |
    }
    }

This snippet works, but clear.gif is present also.

(issue imported from #M5835)


Files

0005835_v3.patch (3.3 KB) 0005835_v3.patch Administrator Admin, 2008-12-16 18:51
0005835_followup.patch (2.18 KB) 0005835_followup.patch Administrator Admin, 2008-12-20 15:29

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #16552: stdWrap.space.useDiv is not implementedClosed2006-09-11

Actions
Actions #1

Updated by Susanne Moog over 15 years ago

Patch adds stdWrap and the useDiv property to space. Patch to #19635 changes rendering of css_styled_content to add spaceBefore and after without the space function but with margins instead, so this is fixed, too.

Actions #2

Updated by Oliver Hader over 15 years ago

Committed to SVN Trunk (rev. 4561) by Thorsten Kahler
Committed Follow-up to SVN Trunk (rev. 4578)

Actions

Also available in: Atom PDF