Hi @ernstp, appreciate your continued patience. I did a bit more investigating of this are there are several problems with what’s implemented in Legend for linking to files on a hard drive (I haven’t tried internet sites). Let me see if I can explain.
What I want to end up with is something like “please click here to see the file” where the highlited word is the hyperlink itself. To make this work:
In summary (details below):
- In File Explorer, do (SHIFT+Right Mouse Click), and select the “Copy as path”.
- In Legend, highlight the text to become the hyperlink. Use “Create link” option from pop-ip text formatting bar (or CTRL+K).
- Paste “filepath\filename” into the URL field (from “Copy as path” above).
- Manually edit to remove the surrounding speech marks from what has just been pasted.
- Click on Insert.
- Hover over hyperlink. Ignore Legend’s “Ctrl+click” instruction as this doesn’t work. Instead do “Ctrl+double click”. Note file opens but minimised.
- Note that Legend now tells you that subsequent access to the hyperlink is by “click” only, and that this opens the file maximised and with the window ontop.
So there’s quite a lot of things to remember here other than simpple copy+paste to get a hyperlinked word. And Legend is wrong in some of it’s instructions / behaviours.
All in all, minor really, once you know how to work around it.
Hope this is useful to others / Jay for some minor fixes.
And, more importantly, I hope I haven’t mis-understood how this is all supposed to work!!!
In detail:
1) If I go to File Explorer (FE) and just copy a file (CTRL+C), and then return to Legend. Then:
a) do CTRL+V to paste.
A pop-up appears with ‘insert link to file’ as an option. Selecting this creates a new file-link icon with the name of the file beside it, but pastes the file-link option above where the cursor is. Seems to put it at the top of whichever item in the Legend list of items that the cursor is is.
b) If, instead of just having the cursor flashing ready, I’ve double clicked a word to highlight it, and then do CTRL+V, exactly the same behaviour as (1a).
As far as it goes this works. But what I really want is a word in the text to be highlighted and act as the hyperlink itself. You know, the “please click here to see the file” kind of thing. This can be done, but it’s full of issues…I’ll see if I can document them logically and clearly. Then if someone else can reproduce, it gives Jay a better chance of fixing.
So, assume that I’ve got a word highlighted in Legend and I want this word to become the hyperink to a file on my hard drive. I’ve highlighted this word by double clicking it. In doing so the text formatting options bar pops up. And I’ll be using the “Create link” option from there (also accessed by CTRL+K). This option presents a dialog box with two fields Text and URL. The Text field has, by default, the highlighted word - so that’s a great default. So……
2) Go to File Explorer (FE) and just copy a file (CTRL+C), and then return to Legend. Select the entry field for URL and paste. Nothing happens. No text at all appears in the field. So this doesn’t work. (get rid of the “Create link Dialog” by clicking away from it.
3) Go to File Explorer (FE) and, on the target file, do (SHIFT+Right Mouse Click), and select the “Copy as path” option from the resulting context menu that appears. Return to the URL entry field in Legend, and now you can paste!! Use the Insert option on the dialog to insert the link, and, hey presto,……err, it doesn’t work! It merely pastes the file path and name as text next to the highlighted word. Ho Hum!!
4) Then, realising that the text you just pasted in the URL entry field is of the form “filepath\filename”, ie., with the speech quotes around it as is the default result of the (SHIFT+Right Mouse Click) and “Copy as path” option from above. So go back to the URL entry field, re-paste, BUT then edit this to delete the speech marks. Do “Insert” and fantastic, it all blooming works.
OK, so now we’re motoring……..I have exactly what I was after, ie., something like “please click here to see the file”……..but it doesn’t end there……..
5) Now hover the mouse pointer over the newly created file-link icon which is now includes the highlighted word. I get a pop-up that shows the name of the file (with all them %20s etc), and as instruction to “Ctrl + click to open”.
a) But “Ctrl + click to open” doesn’t work! It merely highlights all the text in that paragraph, and the linked file doesn’t open. Grrr!!
b) What about a simple “click” on the file-link icon. Again, nothing, nada.
c) But after a bit of fiddling, “Ctrl + double click” does open the file, but in a minimised state. But OK, it’s worked, sort of.
d) But now, if I mouse hover over the the file-link icon, the test in the resulting pop-up says that I only need to “Click to open”. Hmm, so the instruction has changed. But indeed a single click on the hyperink does open the file, and this time the file is maximised and shows ontop of other widows.