This topic is locked

Hyperlinks

11/5/2007 11:37:09 PM
PHPRunner General questions
G
guroos author

I have a field in my table whose value is for example: 'statement.pdf'

I have tried making it a hyperlink in Access and in the Visual Editor using 'hyperlink' and 'file' but cannot seem to find the right combination of settings. I would prefer not to have to enter the full path in the field.
In list view the user should be able to click on it and view or right click and download.
Any pointers appreciated.

Sergey Kornilov admin 11/6/2007

Set "View as" type to Hyperlink and enter the full path to the file into a prefix field i.e. http://www.webserver.com/folder/

G
guroos author 11/6/2007

Thanks for that, it works nicely. But this raises another issue. Once the user opens the file they can see the path to the pdf and might be able to guess the name of others they are not meant to see.
Is there a way to restrict the viewing of PDFs to the user who has logged in? I'm guessing this might be outside the scope of PHPRunner. I did find a php script that is supposed to open PDFs but it just kept telling me it was in the wrong format or not there. If I can get this to work I might be able to link to this as well as protect the page, unless someone has a better way.

S
slobbering_dog 11/21/2007

Maybe you could use frames to display the page - this will only show the name of the name of the site that the initial frame calls and the destination frame links are not displayed at all.
Frames are frowned upon by some but I have found that for the purpose you dexscribe it works ok.
Cheers,
slobbering_dog

Thanks for that, it works nicely. But this raises another issue. Once the user opens the file they can see the path to the pdf and might be able to guess the name of others they are not meant to see.

Is there a way to restrict the viewing of PDFs to the user who has logged in? I'm guessing this might be outside the scope of PHPRunner. I did find a php script that is supposed to open PDFs but it just kept telling me it was in the wrong format or not there. If I can get this to work I might be able to link to this as well as protect the page, unless someone has a better way.