Okay, well I did more than that with this patch... :)

I added an optional "title" attribute, which can be used like so: [inline:2=This is a title]

For images, if supplied the title will be used as a roll-over tooltip.

For all other files, if supplied the title will be used as the actual link text (instead of displaying the disk icon). If a title is not supplied, the disk icon will still be used. (Also, the actual filenames are used in a roll-over tooltip.)

(Optionally, I included a line of code which uses the actual filename as the link text, instead of displaying the disk icon for files where titles are not supplied. This line can be uncommented, and the disk icon line commented, to use filenames for links.)

I also cleaned up all of the help text, and pretty much every string in the module.

Also see the first comment below for another version of this patch.

CommentFileSizeAuthor
#1 inline-multi.patch7.66 KBjoshuajabbour
inline.patch7.53 KBjoshuajabbour

Comments

joshuajabbour’s picture

Title: added title attribute » added title attribute + more
StatusFileSize
new7.66 KB

This is the exact same patch as above, but I also added "file" and "attachment" tags.

They can be used in the same way as "inline", just to make it easier for users. (File is less technical, as is attachment).

All of these options will work with this patch:

[file:1]
[file:1=This is a title.]
[attachment:2]
[attachment:2=Tooltip text here]
[inline:3]
[inline:3=words here!]

joshuajabbour’s picture

Oh yeah, on top of rewriting some strings, I cleaned up the code to fit with Drupal coding standards.

Anyway, great module to begin with! Thanks...

joshuajabbour’s picture

Project: » Inline
Version: 6.x-2.x-dev » 4.7.x-1.x-dev
Assigned: joshuajabbour » Unassigned
Status: Needs review » Closed (fixed)

closing old orphaned issue