windows 在 Confluence 中创建指向网络上文件位置的链接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2608652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating link to file location on network in confluence
提问by Saobi
On confluence I want to create a link that links to:
在汇合时,我想创建一个链接到:
P:\myFolder\folder, where P is mapped to a network share.
P:\myFolder\folder,其中 P 映射到网络共享。
Just putting in "P:\myFolder\folder" doesn't work. Any ideas?
只是放入“P:\myFolder\folder”是行不通的。有任何想法吗?
(Assuming I cannot put in the full network path).
(假设我不能放入完整的网络路径)。
采纳答案by Brendan
typically what would work is
通常会起作用的是
file:///p:/myFolder/folder/
If there are spaces in the name like 'My Documents' you can surround the link with [ ]
如果名称中有空格,例如“我的文档”,您可以用 [ ] 将链接括起来
[file:///p:/my Folder/folder/]
Of course you can also add an alias:
当然你也可以添加别名:
[The Folder|file:///p:/my Folder/folder/]
I just tested a variation of this and it seemed to work.
我刚刚测试了它的一个变体,它似乎有效。
[file:///\\servername/share/folder/file.ext] works in IE (note two back slashes in front for the server name)
回答by Lisa W. E.
As Vladimir Alexiev writes, the browser might need some setting up. Firefox and Opera do not allow opening links to local files. This is for security purposes. Have a look at http://confluence.atlassian.com/display/JIRA/Linking+to+local+file+under+Firefox(This page is located within the JIRA documentation, but the information is not JIRA-specific.)
正如 Vladimir Alexiev 所写,浏览器可能需要进行一些设置。Firefox 和 Opera 不允许打开本地文件的链接。这是出于安全目的。看看http://confluence.atlassian.com/display/JIRA/Linking+to+local+file+under+Firefox(此页面位于 JIRA 文档中,但信息不是特定于 JIRA 的。)
回答by Carpe DI3M
The following worked for me on Windows 7 under Firefox 24.5:
以下在 Firefox 24.5 下的 Windows 7 上对我有用:
\\servername\share\folder\
translates to:
翻译成:
file://///servername/share/folder
That is 5 forward slashes.
那是 5 个正斜杠。
回答by Sushrut Kasture
no need to use file:\\\;
just put as
无需使用file:\\\;
只是作为
<a href="localhost/V1.mp4">download</a>
where localhostis your server name;
其中localhost是您的服务器名称;
回答by Vladimir Alexiev
You can setup Shortcut Links* (Browse>Admin>Shortcut Links) to make this easier. Then you can write e.g. [myFolder/folder@P]
您可以设置快捷链接* ( Browse>Admin>Shortcut Links) 以使其更容易。然后你可以写例如[myFolder/folder@P]
You may also need to take care for your browser to open the links. That depends by browser.
您可能还需要注意浏览器才能打开链接。这取决于浏览器。