Bug #72515
closed
Double "title" in links of images
Added by Anonymous almost 9 years ago.
Updated almost 9 years ago.
Description
When I create a content element with an image with a link and I set a title to the image and a title to the link, in HTML source appear both titles.
<a href="file.html" title="information2" title="information1">
That is not valid HTML.
The image should get the title of the image. And the link should get the title of the link.
When the link has no title, it can get the title of the image.
Files
- Status changed from New to Needs Feedback
- Target version deleted (
next-patchlevel)
Are you using css_styled_content of fluid_styled_content?
Are you using latest 7.6.2?
TYPO3 release 7.6.2
css_styled_content
I am tested it as well css_styled_content as css_styled_content v6.2.
Both the the same result.
fluid_styled_content is not installed.
Ok, I've to test with CSC then, because I can't reproduce the issue with FSC.
I think this is the consequence of having set the TS constants:
styles.content.imgtext.titleInLink = 1
styles.content.imgtext.titleInLinkAndImg = 0
(which is the default); if you set styles.content.imgtext.titleInLinkAndImg = 1 everything goes right.
By the way: I guess there is very little point in having both the title for link and image set at the same time
Setting styles.content.imgtext.titleInLinkAndImg = 1 does not change anything in <a> tag.
If I set styles.content.imgtext.titleInLink = 0 in <a> tag is the title of link and in <img> tag is the title of the image and there is no double title in <a> tag.
I have the same TS in TYPO3 6.2. There I do not have double title in <a> tag. There is the title in <a> tag always the title of the image. TYPO3 7.6 and 6.2 create different outputs.
You are right. I will remove the title of the link in this case. Then is the problem.
I just tested this on 6.2.17 and I also get the double title there.
Whyever. I have no problems in 6.2.17. I had a look in the source of css_styled_content/Classes/Controller/CssStyledContentController.php. The part for the title tag is the same in 6.2.17 and 7.6.
It doesn't matter. I will change my links and titles.
Than can you close this case.
- Status changed from Needs Feedback to Closed
Alright. Feel free to reopen, whenever you see the need. Contact us on Slack.
Also available in: Atom
PDF