[xwiki-devs] Open Windows Explorer folder
I thought that this should be possible with 2.1 syntax, but I think I am overlooking something small... How can I create a link so a Windows Explorer opens to a (network)drive? For example: [[Open Temp>>unc:c:\temp\]] -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903.htm... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Tue, Jun 26, 2012 at 3:58 PM, Hamster <[email protected]> wrote:
I thought that this should be possible with 2.1 syntax, but I think I am overlooking something small...
How can I create a link so a Windows Explorer opens to a (network)drive?
For example: [[Open Temp>>unc:c:\temp\]]
Not sure why you use unc since c:\temp\ does not looks like unc path to me. [[Open Temp>>file://c:\temp\]] seems to work well for me (at least on Firefox).
-- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903.htm... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Jun 26, 2012, at 3:58 PM, Hamster wrote:
I thought that this should be possible with 2.1 syntax, but I think I am overlooking something small...
How can I create a link so a Windows Explorer opens to a (network)drive?
For example: [[Open Temp>>unc:c:\temp\]]
UNC is supposed to be supported in XWiki Syntax 2.1. Our documentation gives the following examples (from http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax): unc:C:\Windows\ unc:\\myserver\path\img.png unc:home/user/somefile What happens when you click on your link? Note that I've checked the unit test I wrote for this: [[unc:\\myserver\myshare\mydoc.txt]] generates in HTML: <a href="file://///myserver/myshare/mydoc.txt">... The algorithm I coded is this one: // Transform the UNC reference into a file URL of the format: file://///myserver/myshare/mydoc.txt // i.e. replace all "\" chars by "/" and prefix with "file:///". String fileURL = "file:///" + reference.getReference().replaceAll("\\\\", "/"); Let me know what doesn't work. Thanks -Vincent
That's the strange thing... ...nothing happens when I click these links! We are using XWIKI 4.0 with IE9.0, but Google Chrome is not working either. It used to work when we were still on XWIki 3.2 -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com.
What could be blocking the opening of a Windows Explorer window? -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com.
What could be blocking the opening of a Windows Explorer window?
Certainly a bad link ... What's the URL generated ? (the one you see when hovering the link) Jerem 2012/6/28 Hamster <[email protected]>:
What could be blocking the opening of a Windows Explorer window?
-- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
[[Open Temp>>file://c:/temp/]] renders as file:///c:/temp/ So tripple forwardslash...no forwardslash is converted to backslash -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Well, I have the same symptoms with IE8 & Firefox13. Links do not open, though using same url in browser address field opens the location as expected. I wonder if it could be some restriction of recent browser for opening local paths ... Jerem 2012/6/28 Hamster <[email protected]>:
[[Open Temp>>file://c:/temp/]]
renders as
file:///c:/temp/
So tripple forwardslash...no forwardslash is converted to backslash
-- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jun 28, 2012, at 2:54 PM, Hamster wrote:
[[Open Temp>>file://c:/temp/]]
renders as
file:///c:/temp/
So tripple forwardslash...no forwardslash is converted to backslash
Maybe this is relevant: http://rubenlaguna.com/wp/2007/04/20/firefox-and-file-windows-unc-paths/inde... See also http://www.mediawiki.org/wiki/UNC_links Thanks -Vincent
I am having our ICT department adding our wiki to the Trusted Sites for IE9 I will report back later... -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Succes! After adding our wiki to the Trusted Sites section, the opening of Windows Explorer works again! -- View this message in context: http://xwiki.475771.n2.nabble.com/Open-Windows-Explorer-folder-tp7579903p757... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (4)
-
Hamster -
Jeremie BOUSQUET -
Thomas Mortagne -
Vincent Massol