Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
[SOLVED] - question about links to files on shares
Avatar
shawnz28 #1
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] - question about links to files on shares
Might be a silly question but I am having trouble getting links to files on shares to work. Currently the wiki is being hosted on a sever outside the network on the internet, I am working on a pc on the network the shares reside on. I am confident the syntax is correct and have tried entering them with DW edit and FCKGlite as well and links created with either will not launch when clicked. I can copy shortcut and paste and it will work. Reading thru posts I found this http://www.dokuwiki.org/urlschemes and edited the file with no change. I then found this https://www.dokuwiki.org/syntax#windows_shares  I read the comments about "local zone".... and wanted to make sure I am right.

Bascially the problem is that the site is hosted outside the network and will work once the wiki is moved inhouse onto the intranet?


EDIT SOLVED
Problem simplied appeared to be the fact the site was being hosted on a outside resourse. Once I was able to have it hosted on a server on our network the links worked properly as expected
This post was edited 2 times, last on 2011-12-25, 03:49 by shawnz28.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I am confident the syntax is correct and have tried entering them with DW edit and FCKGlite as well and links created with either will not launch when clicked. I can copy shortcut and paste and it will work

Create  symlinks to your directory shares, using mklink in dokuwiki/data/pages.  Then you can refer to the files in your shares as though they were files in a namespace.

Example.  From the command prompt window:

mklink /D "E:\apache\htdocs\dokuwiki\data\pages\other" "\\TEST\docs\tmp"

This will create a symlink in data\pages named "other" which will refer to the share folder \\TEST\docs\tmp

Then in your Dokuwiki page you can refer to [[:other:file.txt]]

And when you open the internal link dialog in either fckgLite or in the native Dokuwiki editor the namespace other will appear in the directory listings.

To use mklink you must open the command prompt window as administrator, which you do by right-clicking on the icon and choosing "Run as administrator". 

To use mklink your OS must be Vista or later (i.e. Win7).
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #3
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
We are running XP on our workstations. Would this even be needed though once I move the wiki internal? If this is all caused by it being hosted externally while testing doku and will work once moved I will be fine
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
If b "internal" you mean on the same machine as your Dokuwiki is installed on, then you shouldn't have problems.  The simplest thing is to put your data in dokuwiki/data.  That's the easiest way to use fckgLite.  Otherwise see: http://www.mturner.org/fckgLite/doku.…?id=file_browser_i…
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #5
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
The wiki would be hosted on a server on the network but the files and folders linked within the wiki would be scattered around to other network shares. The wiki is for support staff and moving the files would be an option, but would not be the first, as many of the files and folders on the san I am attempting to link to are owned and updated by other teams in the company.
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Unless all of these scattered sites are using dokuwiki to create files, then you can be referring only to media files.

The only other option for you is one I haven't tested myself.  But XP has a kind of link called a junction.  It is not a symlink (though sometimes called that) but a link which acts as another name for the directory, so that if you delete the junction you delete the directory and all of its contents.  You might see if you can create a junction to a share, in the same way that I suggested that you make a symlink to a share with mklink.   I kind of doubt that you can create a junction to a share on another machine, it seems counter-intuitive.  But maybe you can.  I suggest that you google "windows junction" and you will find sites with utilities that enable the creation of junctions.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #7
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Ok thanks again, I will have to reread this and make sure I understand as symlinks are new to me. The creation of these links would have to be performed on each PC using the wiki?

Just to be sure it is understood what I want to do and to make sure I am not just being thick, I simply want to have links to files/folders outside the wiki and when one clicks the link it would then open said file/folder in Word, Excel, or Windows Explorer depending on what it is... just didnt expect it to be so difficult.

This is what I am trying to do below (from the syntax page)

Windows Shares
Windows shares like this are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate Intranet. Windows Shares like [[\\server\share|this]] are recognized, too.
Notes:     For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the “local zone”).
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
All of this back and forth has been predicated on the basis that you cannot get shares to work.  But now I'm not entirely sure we are on the same page,  So, starting from the top:

1)  In order to download a share from a link, the user must be logged into the machine on which the share resides; this you do by opening My Computer, going to "Network Places, and then in the sidebar clicking on "Workgroup Computers" and then logging on.  If your users are not logged on to the computers with the shares then the share links on IE will not work (and they work only in IE).

2) Secondly, just clicking on a share link does not always activate the link. What you might have to do instead is to right-click on the share link and then select "Save this target as . . "
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #9
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Thanks that was my concern that we were not on the same page... When I did this at work left clicking on the link to the share or file produces no action. Right clicking and choosing open in new tab or window produces no action. Right clicking and choosing copy link location and pasting the file:///...  into the window and pressing enter works properly.

1) As for your first point I am not at work till Saturday to check . But the shares in question that I was trying to get to from the wiki are mapped on my pc I was using... depending on location either by the Active directory logon script or by me manually.



Now after typing the above I shared a folder on my pc at home I am on now and got the same result. In DW Edit the link looks like this [[\\My PC Name\Shared Folder|Link Name]] but again the same action or lack there of is produced when left clicked. If I right click and choose Copy Shortcut and paste into the browser I get file://My PC Name/Shared Folder and it works properly just as it did above.

Another thing I noticed which may or may not be relevant.... If I link to a file instead of a folder and hover over or right click and choose save file as the file name will be changed from file.extention to file_extention
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Thanks that was my concern that we were not on the same page... When I did this at work left clicking on the link to the share or file produces no action. Right clicking and choosing open in new tab or window produces no action. Right clicking and choosing copy link location and pasting the file:///...  into the window and pressing enter works properly.

The point is not to right click and open a new tab but to right click and select: ""Save this target as . . "
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #11
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
If I make it a folder it save target is not an option.

If I make it a file in this folder it does not work properly, renames the test.jpg to test_jpg in the save as dialog box and saves empty while renaming further to test_jpg.qcqizxi.partial and is an empty file.

I also found the copy shortcut will not work directly to the file either but does to shared folder it is located in.

Again this is being done on my home pc


Also incase it helps if I make a simple HTML page which I open off my PC I can make a link to the shared folder which clicking on will open, but not the file it will not work.
This post was edited 2 times, last on 2011-12-08, 16:19 by shawnz28.
Avatar
turnermm (Moderator) #12
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
If I make it a folder it save target is not an option.

Because there is no target.  A target has to be a file.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
shawnz28 #13
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Because there is no target.  A target has to be a file.
Yes that part I understood, was just trying to give all the details.
Avatar
shawnz28 #14
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Ok something new I tried, though not sure if useful or telling of anything. I downloaded EasyPHP (ran at defaults) and FTPd the wiki to my local computer, so now the wiki and the folder I am trying to connect to are on the same pc, to see if it makes a difference and it did not. Again the links to the share in both the wiki page and the html page I created look exactly the same when I hover over them, but the wiki does not work while the html page does work and opens the folder or file I link to. When hovering over the link both the wiki or the html page it shows file://my pc/folder/  Save target as still has the same result as well, renaming and saving an empty file in the wiki.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-19, 16:19:18 (UTC +02:00)