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 #1

Updated by Steffen Müller almost 16 years ago

Documentation update:

TSref [tsref:config/->CONFIG]
Property: disableBaseWrap
Data type: boolean
Description: If set, the wrapping <div> container will be disabled in plugins which use $this->wrapInBaseClass()

Actions #2

Updated by Steffen Müller almost 16 years ago

send as RFC to core list...

Actions #4

Updated by Martin Holtz almost 16 years ago

but i really like this solution, because we have than stdWrap on plugins which uses pi_wrapInBaseClass = great enhancement:)

Actions #5

Updated by Yannick Pavard almost 15 years ago

This bug is resolved ?

Thanks

Actions #6

Updated by Steffen Müller almost 15 years ago

No.
It's pending in the core list. No decision yet.

Actions #7

Updated by Rafal Brzeski over 14 years ago

What's the decission?
In which version this option appears on ?

Actions #8

Updated by Lina Wolf over 14 years ago

I added another patch according to discussion on the core list.

Actions #9

Updated by Jigal van Hemert about 14 years ago

And version six pending in core list...

Actions #10

Updated by Jigal van Hemert over 13 years ago

  • Assignee set to Jigal van Hemert
  • Target version changed from 0 to 4.7.0
  • % Done changed from 0 to 70
  • Complexity set to medium
Actions #11

Updated by Xavier Perseguers over 13 years ago

  • Tracker changed from Bug to Feature
Actions #12

Updated by Gerrit Code Review over 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9167

Actions #13

Updated by Stefan Galinski over 12 years ago

Just created a new review request with the latest patch in the name of Steffen Müller. Is that ok Jigal?

Actions #14

Updated by Steffen Ritter over 12 years ago

  • Target version deleted (4.7.0)
Actions #15

Updated by Stefan Galinski over 12 years ago

Nobody wants to care about this feature? If so I will abandon the Gerrit review request soon. If someone wants to continue on this feature, he should look into the comments in Gerrit.

Actions #16

Updated by Stefan Galinski over 12 years ago

  • Status changed from Under Review to New
  • Assignee deleted (Jigal van Hemert)

Like promised I abandoned the request.

Actions #17

Updated by Georg Ringer over 11 years ago

  • Status changed from New to Rejected

won't be fixed. extbase and fluid is in favor

Actions #18

Updated by Steffen Müller over 11 years ago

Wouldn't it then be consequent to remove the whole piBase stuff from core? Rejecting enhancements for piBase means it's dead anyway. sigh

Actions #19

Updated by Björn Jacob over 11 years ago

@Steffen: Full ACK. There are still tons of piBase extensions which will stay for years. Therefore we still need this feature.

Actions

Also available in: Atom PDF