You are viewing limited content. For full access, please sign in.

Question

Question

Direct download link for webaccess

asked on May 3, 2013 Show version history

can we create a link to webaccess that will automatically download an electronic document. Something like http://servername/laserfiche8/index.aspx?db=repositoryname&profile=profilename#id=id but this only opens the LF document of that EID

0 0

Answer

APPROVED ANSWER
replied on May 31, 2013

Yes you can modify the link to download an electronic document directly. Use the following format:

http://servername/laserfiche8/electronicfile.aspx?db=databasename&id=123

Where "servername", "databasename" and "123" would be replaced with the specifics of your Web Access server, database and document ID (respectively).

0 0

Replies

replied on February 21, 2014 Show version history

Instead of using a Document ID to link to a document that loads without the document directly, is there a way to use WebLink to link to a document by name that will open the document in a new tab?

 

We are currently on WebLink7 and use this for our website to link to specific documents, instead of placing the files in a media server.

 

The issue being that if the repository was to be re imported the document IDs would all change, and all links would break.  Or, if there is a slight change to the document, you would need to reupload the changes also changing the Doc ID.

 

I was hoping instead of Doc ID you could use a Doc Name, that way no matter what the document with that name would open.

 

For example this is what limits us: http://lf.buttecounty.net/weblink7/ElectronicFile.aspx?docid=989945

 

I know I could do a search that would return the 1 document, but then it shows that extra step of clicking the "Download electronic file", which is an extra click. 

 

 

Maybe weblink8 fixes this? (we're in the process of migrating) But I would like to leave all my documents in LF and simply link by a document name, being that we have so many documents linked with our County website.

 

It works great for pulling multiple documents at once, for example all material associated to a single meeting.

1 0
replied on February 21, 2014

What do you mean by "The issue being that if the repository was to be re imported the document IDs would all change, and all links would break"?  Entry IDs don't change over the lifetime of the entry, even over upgrades of the Laserfiche server.

0 0
replied on February 21, 2014 Show version history

The only way the document ID's would ever change is if you exported all of the files from a repository and imported all of the files to a different repository. The repository shouldn't change with upgrades. As long as you have the lf.buttecounty.net domain these links should work in the future as you can also map iis to use \weblink7 as well as \weblink8. 

 

I don't think looking for a document by name will work because as long as documents are in different directories they can have the same name. 

 

 

0 0
replied on February 24, 2014

Meaning we have a replication service, that copies from one repository inside our firewall to another outside for the public to view.

 

So if this replicator for some reason fails or documents are not "sync'd" then we remove the repository and replicate the repository once more to the outside, therefore changing the documents IDs.

 

Maybe we should be doing this differently but it has done very well to keep documents safe, and we have not had to "re-replicate" since I have been around (4 months).

 

But also lets say a user uploads a document (for example a meeting agenda), and realizes they make a mistake, so then they must remove the document, and reimport.  This would have reassigned the DOC ID.

 

This is why instead if we could link by document name, if we ever made changes as long as we kept the name the same (like 2014-02-24 Agenda) then no matter the document uploaded, as long as it had that name, would be linked.

 

I have a feelings it wont work like this, but fingers crossed so we can use this for our website hosting needs. I am open to ideas, maybe there is a better way I could update documents leaving the DOC ID alone? That would solve one of our needs.

0 0
replied on February 24, 2014 Show version history

Edit:   I see now in your original post that you were asking to avoid the below and have it directly open without knowing the ID ahead of time.

 

On 2nd thought about all of this the only way I could think you could do this would be to write a custom script that would take the passed URI search in, check to see if it had one result or multiple results, then grab the ID if it's one and redirect the url result to that ID, or redirect to the search result url if it had more than one result.

 

I'm thinking it could technically be done but I'm not sure exactly how to implement it.  

 

 

You could directly link to a search every time like this:

 

http://hostname/WebLink8/search.aspx?searchcommand=%7BLF%3AName%3D%22test%20search%22%2C%20Type%3D%22DB%22%7D 

 

As shown on this page:

 

http://www.laserfiche.com/support/webhelp/weblink/8.2/en-US/WL/WebLink8_Left.htm#CSHID=Directly%2520Linking%2520to%2520WebLink.htm|StartTopic=Content%2FDirectly%2520Linking%2520to%2520WebLink.htm|SkinName=Default

 

I don't think there's any way to change the ID itself. 

0 0
replied on February 24, 2014

WebLink uses entry ids precisely because they don't change over the lifetime of the document, so that the link doesn't break if the document is renamed or moved.  If you want to link using path, it wouldn't be too difficult to add a page to WebLink to translate the path to an id and forward the request to the existing page.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.