I want to add the downloadability of the attachment to the categoryview.
I´ve allready added the code to the displaylink.tpl and the downloadlink appears but when i move the mouse over the link i see that the ATTACHID Field isn´t filled. and when i cick on it i only can download the download.php file.
To give a download link for an attachment you have to be within the scope of the attachment. Since there can be multiple attachments per item, there's a <!-- BEGIN LINK ATTACHMENTS --> area in the template where the {ATTACH variables apply. If you want to give a link outside of that, download.php?id={IMAGEID}&action=download should grab the first available attachment for the item.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Downloadlink
Beginner
Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Comments: 6
I want to add the downloadability of the attachment to the categoryview.
I´ve allready added the code to the displaylink.tpl and the downloadlink appears but when i move the mouse over the link i see that the ATTACHID Field isn´t filled. and when i cick on it i only can download the download.php file.
It looks like:
download.php?id=335&attachid={ATTACHID}&action=download
Which code must i implement in which PHP-Script ?
thanks for help
Werner
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
To give a download link for an attachment you have to be within the scope of the attachment. Since there can be multiple attachments per item, there's a <!-- BEGIN LINK ATTACHMENTS --> area in the template where the {ATTACH variables apply. If you want to give a link outside of that, download.php?id={IMAGEID}&action=download should grab the first available attachment for the item.