Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: upm_file_packets
Er, it already does do that, that’s the default behaviour… or does that not work for you?
Yes, it does. You see, I didn’t even try it — I just assumed as the button was called “Attach” it would not do it. Sorry for that.
One cheeky question: so far, I’d handcoded the HTML for my download lists using clases on the li elements to assign different icons to different filetypes. Is there a way I could do this with the plugin?
At the moment I have to admint that I haven’t looked into it because I’m away from my computer over the weekend but I just thought perhaps you’d have a quick solution up your sleeve.
Last edited by andreas (2005-10-01 13:29:35)
Offline
#50 2005-10-01 19:31:21
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
I don’t know how/if they would work together, but I found this plugin.
Offline
Offline
#52 2005-10-07 01:08:07
- MattH
- Member
- From: Ann Arbor, MI
- Registered: 2004-10-17
- Posts: 30
Re: upm_file_packets
<code><txp:file_download_name /></code> doesn’t seem to wok on my clean 4.01 install. Is anyone else having this problem?
Also, is there a way to get display the file description?
Last edited by MattH (2005-10-07 01:10:10)
Offline
#53 2005-10-07 16:07:34
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: upm_file_packets
There is a fix for 4.01 : see here
If you haven’t fixed it’s probably the point. ;)
Last edited by Niconemo (2005-10-07 16:08:05)
Nico
Offline
Re: upm_file_packets
I found a way to display the file download list exactly as I wanted it with different icons for different file types:
I created a category for each type of file (zip, doc, pdf, mp3) and use this code in my article form:
<pre>
<ul class=“dloadlist”>
<txp:upm_article_file_list />
</ul>
</pre>
In the files form I have this:
<pre>
<li class=”<txp:file_download_category />”>
<txp:file_download_link>
<txp:file_download_name /> (<txp:file_download_size format=“auto” decimals=“1” />)
</txp:file_download_link>
</li>
</pre>
If you need the file category for other information, you can also use the description field since you only have to enter three-letter descriptions (i.e. file types).
I use CSS to assign a different icon to each file type. Here’s an example
Last edited by andreas (2005-10-08 06:58:03)
Offline
#55 2005-10-08 07:45:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
Excellent! (Files it away in that black hole of Mary’s memory…) Thanks for sharing Andreas. :)
Offline
#56 2005-10-08 08:08:09
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: upm_file_packets
Using the category as a CSS class is really a simple but excellent idea ! (and not only for files download) it’s an easy way to have category icons, highlighted articles and so on. I’ll keep it in mind too.
Last edited by Niconemo (2005-10-08 08:08:35)
Nico
Offline
#57 2005-10-08 23:12:01
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_file_packets
v.0.2.2. Bug fix.
Offline
Re: upm_file_packets
Just thought I’d mention that I have the “popularity” listing working now thank you. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: upm_file_packets
Is there any way of telling <code><txp:upm_file_packets_article_custom /></code> not to select articles that don’t have an attached download id?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#60 2005-10-17 05:19:28
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: upm_file_packets
I think there is an easy way : if your whole article form is between an txp:if_custom_field
tag associated with the dl id custom field, nothing would be displayed if that field is empty (not tested but it should work).
Last edited by Niconemo (2005-10-17 05:20:29)
Nico
Offline