Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2007-03-31 04:10:33

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

v.0.3

Last edited by Mary (2013-01-24 17:22:19)

Offline

#38 2007-04-02 01:44:11

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Awesome Mary! It works splendidly.

Offline

#39 2007-04-06 03:46:50

mwillse
Member
From: brooklyn, ny
Registered: 2006-06-26
Posts: 83
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Brilliant Mary! Such a helpful plugin.

A question for you:

1) In the plugin’s help file, it says “class to apply to the image”. I couldn’t figure it out. Where does this class get applied?

A question for the community and you:

2) I’m having trouble producing a clean unordered list because I’m using txp:if_different to add headers based on file category. I can use <br />‘s instead, but I’m hoping there’s another way. I can wrap each link in my file form with <li> as in this example:

<txp:if_different><h4><txp:file_download_category /></h4>
<txp:else /></txp:if_different>
<li><txp:file_download_link><txp:file_download_description /></txp:file_download_link> 
[<txp:file_download_size format="auto" decimals="0" />]</li>

And I can wrap the whole list with <ul> using Mary’s wraptag or around the tag like so: <ul><txp:upm_article_file_list /></ul>.

But then my headers get stuck in the list which isn’t semantically correct and will probably break in some browsers. So my question is… Can anyone think of a way to generate a clean list by category? Something like:

<h4>Category A</h4>
<ul>
 <li>link</li>
 <li>link</li>
</ul>
<h4>Category B</h4>
<ul>
 <li>link</li>
 <li>link</li>
</ul>

Thanks again everyone for all your work and help.

Offline

#40 2007-04-06 17:08:56

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

For the first question: either to the image itself or to the wraptag if it is supplied.

Offline

#41 2007-04-06 19:34:18

mwillse
Member
From: brooklyn, ny
Registered: 2006-06-26
Posts: 83
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

I’m confused. What image? Can you associate an image or thumbnail with file download link? Or is this only if the file is an image rather than a pdf, doc, etc?

Offline

#42 2007-04-06 21:30:39

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Ha ha! That’s a mistake – the word should be ‘file’ not ‘image’. I’ve got two plugins which act very similarly and have very similar documentation – one for images and this one for files. I must’ve spaced on which one I was working on/talking about. (Just smile and nod…)

Sorry for the confusion. I’ll correct the plugin’s doc ASAP.

Offline

#43 2007-04-08 18:20:49

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

v.0.3.1

Last edited by Mary (2013-01-24 17:22:30)

Offline

#44 2007-05-09 23:21:47

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Mary,
I currently associate files with articles using upm_file, and then display all of them by simply putting <txp:upm_article_file_list form="files"> on the page. In the“files” form, I include a link to the file, the number of downloads, the size, and the file description.

Would it be possible for you to add these features to your plugin:
1) Allow files to be rated by visitors
2) Allow sorting file lists by their rating (as in <txp:upm_article_file_list form="files" sort="rating">).

These features would be extremely helpful for my site, and I think they would nicely complement your plugin. Mary, please help!

Last edited by aswihart (2007-05-09 23:23:01)

Offline

#45 2007-05-10 01:16:34

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

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

The kind of thing you’re asking for is possible but somewhat involved. I could do it, but it’d take time. I can’t state exactly how much, as it depends on how much free time I can get.

Offline

#46 2007-05-10 01:36:14

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Mary, thank you for checking into my request. I would be happy to donate something towards your effort. I love all of your plugins so I know you’ll do it right. Let me know how I can donate.

Offline

#47 2007-05-10 12:31:45

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

I just donated, Mary. Thanks for all your great work.

Offline

#48 2007-05-17 04:27:57

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.

Mary,
As a start, do you think it would be difficult to at least implement the ability to sort files by rating? Could this be done somehow using another custom field where I could input a rating from 1 to 10 (or 100)? I realize later, if you get around to letting visitors rate files, it will have to be done another way.

Last edited by aswihart (2007-05-17 04:30:21)

Offline

Board footer

Powered by FluxBB