Bug #25025
closedLinks on graphical headers produce wrong/broken image
0%
Description
When using a graphical generated header and adding a link to it, the resulting image (which should contain a graphic representation of the h1-header) gets generated with the beginning a-tag, and therefore shows nonsense instead.
If you make a header first - without a link - and save it, there's no problem. Even if you later add a link to it. I guess the cached image is used. Clearing all cache makes it break again, however, which, inthis cotext, makes sense.
The other way around (removing the link) does not solve the issue either - if a header is generated with a link from start. Not before you change the text significantly - to force gifbuilder to make a new image.
Here's the used TS:
#General header
GfxHeader = IMAGE
GfxHeader {
wrap = <h1>|</h1>
altText.field = header
file = GIFBUILDER
file {
XY = [10.w]+10,35
backColor = #FFFFFF
10 = TEXT
10.text.field =
10.text.current = 1
10.offset = 0,20
10.fontSize= 24
10.fontFile = fileadmin/templates/fonts/sansation/sansation_regular-webfont.ttf
10.fontColor = #660000
10.niceText = 1
10.antiAlias = 0
}
}
#Headers
lib.stdheader.stdWrap.typolink.parameter.field = header_link
lib.stdheader.10.setCurrent.htmlSpecialChars = 0
lib.stdheader.10.1 < GfxHeader
(issue imported from #M17570)
Files