Page 1 of 1

Phoca Download Plugin - link to file without ID?

Posted: 11 Nov 2010, 23:46
by mohsho
I want to be able to dynamically create a download link to a file without knowing it's phoca ID #.

For example, I'm using:

{phocadownload view=file|id=1|text=Click Here to Download Article}

but, when I'm dynamically generating this link, I only know the filename (and the alias), but I don't know "id=1". Is there anyway I can construct a download link without the ID? Or maybe there's a way to get the ID from the information I have?

Re: Phoca Download Plugin - link to file without ID?

Posted: 13 Nov 2010, 19:01
by Jan
Hi, then you need to load it from database, the id is needed and is unique identifikator of the file, which must be known, if you want to link to this file.

Jan