Project

General

Profile

Actions

Bug #37893

closed

missing blank in cObject noTrimWrap

Added by Pascal Naujoks almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2012-06-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,
in TYPO3 4.5 i added a layout and section-frame class to all cObjects with

tt_content.stdWrap.innerWrap.cObject.default {
  15.noTrimWrap = | class="|" |
  17 = TEXT
  17.dataWrap = layout-{field:layout} frame-{field:section_frame}
}

After upgrading to 4.7 my layout was destroyed because of the following html result:

<divlayout-0 class="csc-default" frame-0=""><div class="divider"><hr></div></divlayout-0>

I had a look at the new HTML5 structure of cObjects and had to change my script to:

tt_content.stdWrap.innerWrap.cObject.default.20.10.dataWrap = layout-{field:layout} frame-{field:section_frame} 

This worked partly cause the html output was now (notice the missing blank between frame-0 and csc-default)

<div class="layout-0 frame-0csc-default"><div class="divider"><hr></div></div>

So I also changed

tt_content.stdWrap.innerWrap.cObject.default.20.10.noTrimWrap = || |

to

tt_content.stdWrap.innerWrap.cObject.default.20.10.noTrimWrap = | | |

and it worked for me. Would you please add the blank or layout and section-frame classes in future versions? Thanks.

Actions #1

Updated by Pascal Naujoks almost 11 years ago

  • Target version deleted (4.7.2)
Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber
  • Is Regression set to No

I am a bit ambivalent with your request.
Thing is that if we always add the space you request, we might get other reports that complain on the added space.
While personally I do not care about the additional space at all there will be people arguing that it should not be there.

The extra space is only necessary if you add your own TS into the wrap.
In this case you "should" adapt the TS CSC brings along.

Do you have an idea how we can solve the dilemma? :)

Actions #3

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Mathias Schreiber)

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions #4

Updated by Oliver Hader over 6 years ago

  • Category changed from 1050 to Frontend
Actions

Also available in: Atom PDF