Bug #55706
closed
Different behavior of levelmedia in TYPO3 6.2
Added by Björn Jacob almost 11 years ago.
Updated about 7 years ago.
Category:
Content Rendering
Description
I think levelmedia is behaving "strangely" (i.e. different compared to older versions) in TYPO3 6.2beta5. I've tested it with 3 installations.
The TypoScript
lib.getPageRessource = TEXT
lib.getPageRessource {
data = levelmedia:-1, slide
}
<pre>
returns the following values:
* TYPO3 4.7: filename.jpg (i.e. filename)
* TYPO3 6.1: 63 (i.e. uid of file reference)
* TYPO3 6.2beta5: 35,34,33,22,18,17,16,15,14,10,9,7,12,11,8 (i.e. uids of all file references)
IMHO levelmedia should still return one uid which "fits the rootline".
Same probleme here with 6.2beta5. It behaves normal with beta4.
- Category set to Content Rendering
- Status changed from New to Accepted
- Priority changed from Should have to Must have
- Target version set to 6.2.0
- Is Regression changed from No to Yes
Problem is reproduceable. Bug introduced in #54265 "(int) to intval()" optimization. Hope that's the last problem found with that big change. :(
- Status changed from Accepted to Under Review
Patch is currently under review. Of course you are right this change was not intended.
Just to have this complete: You mentioned that you now get IDs instead of a filename. Since FAL and file-releations you now need to add "treatIdAsReference = 1" to get the filename again.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
@Stefan: That's right. Since there's the new FILES cObject I prefer using it instead of the "old" IMAGES cObject. For the last one we need the treatIdAsReference switch. Thx for clarification.
- Status changed from Resolved to Closed
Also available in: Atom
PDF