This topic is locked

Files in a intranet (hyperlink problems)

6/24/2009 2:39:02 PM
PHPRunner General questions
B
bobdansei author

Good afternoon
is there any way to put the hyperlinks to work locally?
example: I have in my database (\\depotx\c$\a\bob.doc)
when I edit the custom view for hiperlink appears in the link: file://depotx/c$/a/bob.doc) and not find the file.
Some one can help me? i need it because i work with a intranet

Sergey Kornilov admin 6/24/2009

You need to create links the following way:

<a href='file://yourserver/somedir/somefile.txt'>link</a>


Most probably you have to use 'View as' type 'Custom' for this purpose.
More info:

http://www.faqs.org/rfcs/rfc1738.html (section 3.10)

B
bobdansei author 6/25/2009

You need to create links the following way:


<a href='file://yourserver/somedir/somefile.txt'>link</a>


Most probably you have to use 'View as' type 'Custom' for this purpose.
More info:

http://www.faqs.org/rfcs/rfc1738.html (section 3.10)


Where i can find a exemple of how write this code in Custom ?

Sergey Kornilov admin 6/25/2009

PHPRunner manual is a good place to start:

http://www.xlinesoft.com/phprunner/docs/in...ings_custom.htm

B
bobdansei author 6/26/2009

PHPRunner manual is a good place to start:

http://www.xlinesoft.com/phprunner/docs/in...ings_custom.htm


can you help me with the code?
i am trying
$value = "<a href=\"file://".getDir()."/".rawurlencode($c['name'])."\" target='blank' >{$c['name']} </a>";
sorry about my poor english

J
Jane 6/26/2009

Rodrigo,
I suppose you should replace $c['name'] with $value or $data["FieldName"].