Webmastersite.net
Register Log In

Downloadlink
Add Downloadlink on the categoryview

Comments on Downloadlink

Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna

Total Topics: 2
Total Comments: 6
Werni68
Posted Aug 22, 2006 - 10:38 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 22, 2006 - 8:03 PM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.