Project

General

Profile

Actions

Feature #19809

closed

make pi_wrapInBaseClass wraps configurable

Added by Steffen Müller almost 16 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-01-13
Due date:
% Done:

70%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
medium
Sprint Focus:

Description

Background:
Plugins often use pi_wrapInBaseClass function in tslib_pibase to wrap the content with a base class. The outcome HTML looks like:

<div class="tx-extensionname-pi1">
... content ...
</div>

This is widespread, because kickstarter ships this function as default.

Problem:
The wraps can be annoying if content is empty or in cases where plugin content is used for AJAX. Unfortunately the wraps are generally not configurable.

Solution:
The appended patch adds some conditions to tslib_pibase::wrapInBaseClass to give user some control (with the precedence that general configuration is overruled by special configuration) :

- no baseWrap container for any plugin if content is empty or new TS option config.disableBaseWrap is set
- custom baseWrap container if configured in TS setup of a certain extension (using stdWrap): plugin.tx_extensionname_pi1.baseWrap

(issue imported from #M10118)


Files

bug_10118.diff (826 Bytes) bug_10118.diff Administrator Admin, 2009-01-13 12:19
bug_10118_v3.diff (2.86 KB) bug_10118_v3.diff Administrator Admin, 2010-01-16 18:52
bug_10118_v4.patch (3.11 KB) bug_10118_v4.patch Administrator Admin, 2010-08-16 22:11
10118_v5.diff (3.87 KB) 10118_v5.diff Administrator Admin, 2010-08-27 16:33
10118_v6.diff (3.75 KB) 10118_v6.diff Administrator Admin, 2010-09-15 23:13

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #19796: pi_wrapInBaseClass should not wrap the div if content is emptyClosedSteffen Kamper2009-01-12

Actions
Has duplicate TYPO3 Core - Feature #16864: Function pi_wrapInBaseClass in tslib/class.tslib_pibase.phpClosed2007-01-17

Actions
Actions

Also available in: Atom PDF