Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-13 02:27:14

steidljr
New Member
Registered: 2006-02-06
Posts: 4

File Download ID situation with podcasting/audio player

Hello my textpattern friends,

I have a situation with my church website (http://hillsboro.org/update-sermons/) and the audio section.

Currently I have the audio player pulling in a URL like http://hillsboro.org/file_download/296 and 296 being the file ID.

The File ID is being pulled from a custom field.

The Problem
This worked fine for a long time, but I updgraded the flash audio player and I’m working on a podcast feed and both reallly want to see a real file name with an extension (.mp3) rather than the path of the file download ID.

There is quite a bit of audio out there, so rather than going back through and putting the acutal file name in my custom field, I was wondering if I could pull the filename some how from the File ID that already exists.

I’m thinking it may take a little PHP to accomplish, so any help would be greatly appreciated.

Thanks!

Last edited by steidljr (2007-09-13 02:27:55)

Offline

#2 2007-09-13 04:22:20

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: File Download ID situation with podcasting/audio player

txp_file_download_name May be of help. This tag is intended to be used as part of the a download form, but you may be able to adapt it to what your doing.

Offline

#3 2007-09-13 04:48:49

steidljr
New Member
Registered: 2006-02-06
Posts: 4

Re: File Download ID situation with podcasting/audio player

I actually tried to go down that path, but…

<txp:file_download_link>
<txp:file_download_name />
</txp:file_download_link>

…creates an actual link <a href=“filedownloadpath”>filename</a>

I need just plain old filename. Thanks for the thought.

Offline

#4 2007-09-13 05:23:22

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: File Download ID situation with podcasting/audio player

Have you tried using it in a form without wrapping it in the link tags?

Offline

#5 2007-09-13 06:56:41

steidljr
New Member
Registered: 2006-02-06
Posts: 4

Re: File Download ID situation with podcasting/audio player

Problem solved unless someone has a better solution.

Installed asy_wondertag

Pulling in the id with my custom field
<txp:asy_wondertag><txp:file_download id=”<txp:custom_field name=“Sermon mp3” />” form=“update_sermons_name” /></txp:asy_wondertag>

My Form
<txp:file_download_name />

Offline

Board footer

Powered by FluxBB