Webmastersite.net
Register Log In

Attachments direct link

Comments on Attachments direct link

webac01
Member

Usergroup: Customer
Joined: Feb 08, 2007
Location: France

Total Topics: 20
Total Comments: 40
webac01
Posted Feb 26, 2008 - 12:29 PM:

Hello,

I have a custom attach field to upload images,

And I want to make a direct link to to display image in directory, because links with "download.php?..." are slow.

Like this:
<img src="attachments/Cat1/Subcat1/pic1a32.wsn">


(I'm using "Attachments directory as category tree")

(and and fortunately in "SEO Use only lowercase=no")

actuelly I'm using this:
<img src="attachments/{LINKREWRITEPATH}/{LINKSOFTLOGOATTACHNAME}">


That's work But I would like to know if there will not a better way

Thank you

PS: Hi paul the link to wsnlink forum is broken (in the left) "http://scripts.webmastersite.net/wsnlinks/"
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 26, 2008 - 2:14 PM:

scripts.webmastersite.net/w...achment-variables-312.html says {ATTACHDOWNLOADURL[direct]} is what you're looking for.
webac01
Member

Usergroup: Customer
Joined: Feb 08, 2007
Location: France

Total Topics: 20
Total Comments: 40
webac01
Posted Feb 26, 2008 - 2:31 PM:

how use it with custom attach field?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 28, 2008 - 2:22 PM:

If you're not in the scope of an attachment area -- meaning the <!-- BEGIN ATTACHMENTS --> associated with links, not custom fields -- then you can't use it.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.