Project

General

Profile

Actions

Bug #37893

closed

missing blank in cObject noTrimWrap

Added by Pascal Naujoks about 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

Also available in: Atom PDF