Project

General

Profile

Actions

Feature #15809

closed

Divider error

Added by Bjrn Kraus about 18 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2006-03-12
Due date:
% Done:

0%

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

Description

The divider rendering throws an error in RC1.

ERROR: Content Element type "div" has no rendering definition!
(issue imported from #M2842)


Files

css_styled_content-cObject-div.diff (489 Bytes) css_styled_content-cObject-div.diff Administrator Admin, 2006-03-31 12:53

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20574: Bring back the divider CEClosedSteffen Kamper2009-06-05

Actions
Actions #1

Updated by Bjrn Kraus about 18 years ago

Still present in RC2.

Actions #2

Updated by Ingmar Schlecht about 18 years ago

Ernesto, I just assigned this bug to you, maybe you could integrate a fix for this into your imgtext related css_styled_content patch.

cheers
Ingmar

Actions #3

Updated by Ernesto Baschny about 18 years ago

@Ingmar,

I would rather start a new patch here, once the previous has been commited. Fixing too many things with one patch doesn't help if we later want to "undo" some change or see what changes one particular fix did.

Actions #4

Updated by Ingmar Schlecht about 18 years ago

I agree.

Actions #5

Updated by Ernesto Baschny about 18 years ago

Attached patch fixes the problem (which has always been there in css_styled_content). The rendering of a a "Divider" will do the same that is being done in content(default): no output at all. If someone thinks this should be changed, please discuss in typo3.teams.content-rendering.

Patch is intended to be applied after the other IMGTEXT fixes (see bug #2995), but should also work with current CVS version.

Actions #6

Updated by Ernesto Baschny about 18 years ago

Please review attached patch.

Actions #7

Updated by Ingmar Schlecht about 18 years ago

Thanks, will do.

cheers
Ingmar

Actions #8

Updated by Bjrn Kraus about 18 years ago

In RC3 the error disappeared, but in the FE the content element is still empty:


<a id="c22"></a>
Actions #9

Updated by Ingmar Schlecht about 18 years ago

Hi Bjoern,

but isn't that the correct behaviour?

Has the divider been rendered in older versions of TYPO3?

cheers,
ingmar

Actions #10

Updated by Ernesto Baschny about 18 years ago

@Björn Heggemann, if you want to output something there, you can add something like this to your TypoScript:

tt_content.div >
tt_content.div = TEXT
tt_content.div.value = <hr />

Actions #11

Updated by Bjrn Kraus about 18 years ago

Sorry, I haven't tested the behavior in older versions.

Shouldn't the output, as Ernesto proposed, be the default setting? Otherwise it would be another Gremlin ;)

Actions #12

Updated by Ernesto Baschny about 18 years ago

I think this is a matter of taste and you will get different opinions on that.

But you are right that it makes little sense to have a "Divider" content element which does nothing. So either we drop this content element or output something meaningful with it.

But either way we must be aware that there might be people already using this in their TypoScript templates, so changing the default behaviour might lead to unforseen results. Which is why such changes have always been considered with care. So I think if we change this, we'll do that in 4.1/4.5 and in a TypoScript part with a condition that tests the compatVersion.

Actions #13

Updated by Bjrn Kraus about 18 years ago

@Ernesto: This sounds good to be. Meanwhile it would be a good idea to add a notice in the ts_ref with the code you proposed.

Actions #14

Updated by Ernesto Baschny about 18 years ago

Ok. I think TSref is not the right place to document that, but rather css_styled_content docu. The CSC-docu has to be updated anyway. Will do that when I have some time and I'll add this information somewhere. Thanks for your comments, Bjoern.

I'll keep this bug report open with "acknoledged" status so I can remember that when the time comes.

Actions #15

Updated by Bjrn Kraus over 17 years ago

Hi Ernesto!

May I remember you to add the changes to 4.1 - I heared the next release is in sight ;-)

Actions #16

Updated by Bjrn Kraus over 17 years ago

Hi Ernesto!

Will this issue be resolved in 4.1 as you promised?

Regards
Bjoern Kraus

Actions #17

Updated by Michael Stucki about 17 years ago

Björn,

when did Ernesto make any promises? I couldn't find any! :-)

Anyway, this change is a very small one. If the div element still throws a rendering error(?) then we just need to fix that. However, changing the default content to something other than blank cannot be done at this time.

- michael

Actions #18

Updated by Bjrn Kraus about 17 years ago

Hi Michael!

No, the error is gone since RC3 as I wrote before.

Ernesto wrote:
"So I think if we change this, we'll do that in 4.1/4.5 and in a TypoScript part with a condition that tests the compatVersion. "

IMHO a divider that doesn't do anything than just beeing a blank content element is still bogus. We had this Zap the Gremlins campaign to ease the use of TYPO3. I think this issue should be a late part of that or at least an ealry part of the next level (4.1/4.5). Ernesto's proposal sounds good. Why shouldn't this find a way in 4.1 - as you can see the report and the discussion is nearly one year old ...!

Regards
Bjoern

http://www.phoenix-medien.de

Actions #19

Updated by Bjrn Kraus over 16 years ago

Michael, is it possible to have this change in 4.2 in the way Ernesto described it?

Actions #20

Updated by Ingmar Schlecht over 16 years ago

Hi Björn,

you are invited to write a patch against latest trunk that implements the behaviour as described. Whether the patch will then be accepted, is then up to the reviewers to decide.

For details, see the http://news.typo3.org/news/article/core-development-mailinglist-now-open-for-community-involvement/ and the rules page.

cheers
Ingmar

Actions #21

Updated by Steffen Kamper almost 15 years ago

committed to trunk, rev 5593

Actions #22

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF