Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-25 20:42:38

oldi
Member
Registered: 2005-10-14
Posts: 87

edit the way files appear

I am using upm_file_packets to have different files attached to an article. But i haven’t found how i change the way that it shows the files. At the moment it gives

file:[filenamne]
Category:[category name]
download: [how many times]

what do i do, if i don’t want to show category?

Also if i have more than 1 file attached, it will show the second filename in the same line as download.

file: [filename]
Category: [category name]
download:[how many times] file: [filename]
Category: [category name]
download:[how many times]

how can i change this?

thanks

Offline

#2 2005-10-25 21:17:42

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: edit the way files appear

Files information takes its cue from the “files” form, accessible under Presentation —> Forms. In your case, you should get rid of the line reading:

<blockquote><code><txp:text item=“category” />: <txp:file_download_category /><br /></code></blockquote>

Also if you add a <code><br /></code> tag to the last line of the form, it’ll start your second file’s information on a new line.

Hope this helps!

Last edited by Elenita (2005-10-25 21:20:38)

Offline

#3 2005-10-25 21:42:48

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: edit the way files appear

Thanks, that did the job, but i still get Category in the end. Below is an example of 3 files being attached.

file: test.txt [23kb]
download: 2

file: pf-firewall.pdf [337.42kb]
download: 2

file: self.txt [42.98kb]
download: 1

Category:

So why do i still get Category? My file form looks like this now:

<code><txp:text item=“file” />:
<txp:file_download_link>
<txp:file_download_name /> [<txp:file_download_size format=“auto” decimals=“2” />]
</txp:file_download_link>
<br />
<txp:text item=“download” />: <txp:file_download_downloads />
<br />
<br /></code>

Any sugestions?
Thanks

Last edited by oldi (2005-10-25 21:43:47)

Offline

#4 2005-10-25 21:56:47

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: edit the way files appear

That’s odd. And this only happens when you have multiple files available for download, not just one?

Offline

#5 2005-10-25 22:04:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: edit the way files appear

Which tag and parameter(s) are you using in your page?

Offline

#6 2005-10-25 23:15:34

oldi
Member
Registered: 2005-10-14
Posts: 87

Re: edit the way files appear

i found the mistake. I had put the category tag somewhere in the default form, and i couldn’t find it. It’s too late to concetrate and my eyes are bluring. Anyway thanks for your help

Offline

Board footer

Powered by FluxBB