Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_file_packets

#49 2005-10-01 13:26:14

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

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

#51 2005-10-03 07:29:57

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: upm_file_packets

Thanks mary, I’ll have a look at that.

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>&lt;txp:file_download_name /&gt;</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

#54 2005-10-08 06:47:44

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

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>
&lt;ul class=“dloadlist”&gt; &lt;txp:upm_article_file_list /&gt;
&lt;/ul&gt;
</pre>

In the files form I have this:

<pre>
&lt;li class=”&lt;txp:file_download_category /&gt;”&gt; &lt;txp:file_download_link&gt; &lt;txp:file_download_name /&gt; (&lt;txp:file_download_size format=“auto” decimals=“1” /&gt;) &lt;/txp:file_download_link&gt; &lt;/li&gt;
</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

#58 2005-10-16 04:31:32

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#59 2005-10-16 22:00:50

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

  1. Index
  2. » Archives
  3. » upm_file_packets

Board footer

Powered by FluxBB