Bug #56956
closedcropHTML with textpic produces an error
0%
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
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.
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.
Updated by Harald no-lastname-given over 10 years ago
Addendum: It works with "text" as contentelemnt too! Just not as "textpic"?
Updated by Markus Klein over 10 years ago
- Category set to Frontend
- Status changed from Needs Feedback to New
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Rejected
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.