Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-01-08 06:44:22
- jawtab
- New Member
- Registered: 2007-01-07
- Posts: 5
file download appears as id# and not filename
I’ve tried an assortment of methods and found the only way to get it to work is with the following:
<a href=“http://www.opticdesire.com/file_download/DJ_Booshy—Free.mp3”>DJ_Booshy—Free.mp3</a>
These would just output the ID# as the filename.
<txp:file_download form=“files-mp3s” id=“9” />
<txp:file_download form=“files-mp3s” filename=“DJ_Booshy—Free.mp3” />
{I thought this one would work…}
Using this form:
<txp:file_download_link>
<txp:file_download_name />
</txp:file_download_link>
So I’d just be using the a href link and add the txp:file_download form=… to pull the other file info.
Any other work around or something I’m missing on the <txp:file_download_link> tag?
Thanks,
j
Offline
#2 2007-01-08 09:29:24
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: file download appears as id# and not filename
The id and filename attributes don’t change how the result is displayed, just which file to fetch.
Change your form to this:
<a href="<txp:site_url />file_download/<txp:file_download_name />"><txp:file_download_name /></a>
Offline
#3 2007-01-10 04:37:08
- jawtab
- New Member
- Registered: 2007-01-07
- Posts: 5
Re: file download appears as id# and not filename
thanks mary! I’ll give this a shot.
Offline
Re: file download appears as id# and not filename
I have the same problem and it happens only with some of the files.
I’m using version 4.0.4
I have no idea what causes it.
Offline
#5 2007-01-30 03:03:11
- jawtab
- New Member
- Registered: 2007-01-07
- Posts: 5
Re: file download appears as id# and not filename
odd indeed. I only tried mp3s. It does see the filename from what i remeber but saves it as the id.
I have yet to try this fix but hope it works out.
very good cms software. once you get the hang of it.
—
gaza wrote:
I have the same problem and it happens only with some of the files.
I’m using version 4.0.4
I have no idea what causes it.
Offline
Re: file download appears as id# and not filename
Oh man, I’ve been using textpattern for a while and I wouldn’t use any other. I’ve used wordpress, drupal, serendipity. Nothing beats Txp for me.
In fact that’s why it’s so weird to me when stuff like this happens.
Have you checked if the filenames of the songs have any special characters as () parenthesis, *, or other things. I’m thinking this could be the problem. I’m not sure, but I’ll keep testing things.
-g
Offline
#7 2007-01-30 04:09:55
- jawtab
- New Member
- Registered: 2007-01-07
- Posts: 5
Re: file download appears as id# and not filename
gaza,
The mp3 files to all have dashes and or underscores in them. Possible problem?
Just qurious but have you tried Joomla? I’m going to need to do some calender systems w/ schedules and client login but I’m sure TXP has plugins for this?
-j
gaza wrote:
Oh man, I’ve been using textpattern for a while and I wouldn’t use any other. I’ve used wordpress, drupal, serendipity. Nothing beats Txp for me.
In fact that’s why it’s so weird to me when stuff like this happens.
Have you checked if the filenames of the songs have any special characters as () parenthesis, *, or other things. I’m thinking this could be the problem. I’m not sure, but I’ll keep testing things.
-g
Offline
#8 2007-01-30 20:03:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: file download appears as id# and not filename
What is the problem, exactly?
Edit: Never mind, since you started a new topic about it.
Last edited by Mary (2007-01-30 20:06:58)
Offline