Bug #16312
closed
short function with css_styled_content does not work
Added by Mirco over 18 years ago.
Updated about 14 years ago.
Category:
Content Rendering
Description
The following typo script code won't work (e.g. substituting the keyword plimg with an image):
tt_content.text.20.parseFunc.short {
plimg = <img src="fileadmin/bilder/bullets/icon_plus.gif" border=0> }
The same code run with content_default works fine...
(issue imported from #M3781)
I cannot reproduce that, Mirco. I have set up TYPO3 4.0, added a template with just "css_styled_content" and added your TS-snippet. It is substituting it correctly in frontend rendering.
Could you provide us with more details on your setup?
- which templates are you loading and in which order?
- take a look in the TypoScript Object Browser if you see lib.parseFunc_RTE and also see tt_content.text.20.parseFunc defined and your addition there.
- are you testing this with content elements of type "Text" or "Text with images"? Does it work on any of those?
Thanks!
Ernesto, thank you for dealing with this.
- css_styled_content is on the top of my template hierarchy followed by many self defined templates
- both lib.parseFunc_RTE and tt_content.text.20.parseFunc are defined and the latter contains my short definition as seen above.
- following your hint I tested this with normal text elements and it works fine
I used a table element and a bullet list element and it does not work with those. I am awfully sorry I havent mentioned that before.
tanks again, Mirco
And Mirco, does it work in all content elements if you add your "short" function to this?
lib.parseFunc_RTE.short {
plimg = <img src="fileadmin/bilder/bullets/icon_plus.gif" border=0>
}
This should be the "way to go". It should work on c(d) and csc.
ALmost there :-) Adding the short function to lib.parseFunc_RTE.short did not work but this was because the innerStdWrap pointed to lib.parseFunc and not to lib.parseFunc_RTE. I fixed that and now it works.....
So, everything seems to be normal and I apologize for any inconvenience!
Thank you again, Mirco
Also available in: Atom
PDF