I made this first link by

  1. selecting the text I wanted to use as the link (i.e. the words 'a file'),
  2. clicking the link to content buttton in the edit bar,
  3. typing a word in to the Search for content autocomplete box (which then shows both the real filename, and what were have been calling the 'Drupal name' (i.e. title), and
  4. selecting the relevant file.

(One does need to have some idea of what will appear in the title [or filename?] for this approach to work.)

  • This is a link to a file that was already in the Library.

This next example illustrates Catherine's point. I attempted to make the link by

  1. selecting the same words (i.e. 'a file') then
  2. adding the link by clicking the Add media button on the edit bar, and
  3. choosing from the Library

Note that the insertion process has substituted the 'Drupal name' for my selected text (and will presumably rename the link if that file title is changed).

  • This is a link to that was already in the Library, but made a different way.

And finally, here is a link to a file I made as I wrote, by

  1. selecting the same words (i.e. 'a file') then
  2. clicking the Add media button and
  3. and uploading it.

Not entirely surprisingly, the behaviour is the same as in the previous case, and my selection (the words 'a file') have been replaced by the file's display name.


In short, to hang a file link on to the text of your choice, the file must already be in the Add media | Library (or the subset that is 'My Files') and the link made from the Link to Content button.