File titles are not displaying as they should with Drupal 4.7.2. Instead of seeing title, file name is displayed within node text.

When I specify a title like [file:myfile.pdf=mytitle], inline.module ignores title and provides a link like:

<a href="myfile.pdf">myfile.pdf</a>

when the link should look like:

<a href="myfile.pdf">mytitle</a>

Same error occurs with
[attachment:myfile.pdf=mytitle] and
[inline:myfile.pdf=mytitle]

Only other contributed modules I'm using are tinymce and i18n.

I thought sun tried to address issue here
http://drupal.org/node/62741#comment-101025
but Richard Archer said he wasn't sure that thread resolved the problem and he asked me to open a new issue.

CommentFileSizeAuthor
#2 inline.tagtitle.patch1.91 KBsun

Comments

drubeedoo’s picture

Confirmed, I am seeing the same problem with the following:

[inline:1=My Image Title] 

is creating erroneous code:

<img style="width: px; height:px;" src="http://example.com/files/whatever.jpg" class="inline" alt="whatever.jpg" title="whatever.jpg" />

the correct code should be:

<img style="width: px; height:px;" src="http://example.com/files/whatever.jpg" class="inline" alt="My Image Title" title="My Image Title" />
sun’s picture

Title: File titles NOT displaying in inline text » Inline tag title is not displayed
Priority: Critical » Normal
Status: Active » Needs review
StatusFileSize
new1.91 KB

Please try attached patch. It should solve this issue.

lisa’s picture

Title: Inline tag title is not displayed » Patch seems to work

I tested patch with Drupal 4.7.2 and it seems to work. Someone else should confirm as well.

sun’s picture

Title: Patch seems to work » Inline tag title is not displayed
Status: Needs review » Reviewed & tested by the community
Bèr Kessels’s picture

Committed. Thanks a lot.

sun’s picture

Status: Reviewed & tested by the community » Fixed

Thank you, too. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)
nig’s picture

I'm still getting this problem for inline file filter. (name tag not displaying, displays full file name instead).

I am using a copy of the module I downloaded on 11.1.07, which is long after this issue was marked as fixed. I am on v4.7.5

It was working fine for me in v4.6.9. Then I upgraded......