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?
Phoca Download Plugin - link to file without ID?
-
- Phoca Member
- Posts: 19
- Joined: 11 Nov 2010, 23:39
- Location: Hamilton, ON, Canada
- Contact:
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin - link to file without ID?
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
Jan
If you find Phoca extensions useful, please support the project