Project

General

Profile

Actions

Bug #56956

closed

cropHTML with textpic produces an error

Added by Harald no-lastname-given over 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-03-16
Due date:
% Done:

0%

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

Description

cropHTML with textpic together produces an erroneous output. It appears no text in FE. The gernerierte source code is wrong (incomplete)!!!

Along with a picture that was inserted via the RTE, cropHTML works no problem though?

Here you have an error be present!

Thank you

Harald

Actions #1

Updated by Markus Klein over 10 years ago

  • Status changed from New to Needs Feedback

This is an insufficient bug report. Please provide exact error information and steps to reproduce (example TS, etc.)
Thank you.

Actions #2

Updated by Harald no-lastname-given over 10 years ago

for example:

pagecontent = COA
pagecontent {
10 = CONTENT
10.table = tt_content
10.select.pidInList = this
10.select.where=colPos=1
10.select.languageField = sys_language_uid
10.stdWrap.cropHTML = 300|...|1
}

Now when i use later a "textpic" in the BE for this output (content element)....... it doesn't work in the FE.
In the FE no picture no text is shown. If i set the picture of the "textpic-element" on hidden, so you can at least see the text.

More I can not say. I have tested it with a minimal installation on two different systems. It also exists in earlier TYPO3 versions!

I am very sure that this is a render problem-concerning "cropHTML"

If I do not insert the image via "textpic" but for the RTE, it works yes. How is that to be explained otherwise.

Actions #3

Updated by Harald no-lastname-given over 10 years ago

Addendum: It works with "text" as contentelemnt too! Just not as "textpic"?

Actions #4

Updated by Markus Klein over 10 years ago

  • Category set to Frontend
  • Status changed from Needs Feedback to New
Actions #5

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from New to Rejected
Of course this breaks.
See, here's what you do:
  • get the content fully rendered - including HTML markup.
  • crop that (fully rendered) content to 300 characters.

What you want to do is crop the Text part of an CE.
For that you need to use the crop on the respective subpart of the text-rendering.
After that TYPO3 will render the remaining necessary markup around it.

Actions

Also available in: Atom PDF