Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2007-01-19 09:33:30

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

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

From the plugin help:

It requires you to use one of your custom fields to hold the file list… pick one to be used, then update the plugin’s preference to point to it.

  1. Got a custom field created?
  2. See the tab “extensions” and under it “upm_file”?
  3. Go to your write tab. You’ve got a file picker link that works with the custom field you created.

Offline

#26 2007-01-19 13:08: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.

OK, now the file picker is adding the file id’s to the article’s custom field. Before, it was not doing this, I think I had to rename the custom field to something other than “custom1,” or somehow I missed that before.

Thanks a lot Mary, the plugin is working great and its something I really needed!

Offline

#27 2007-02-26 17:53:09

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

Is there any file size limit built into the plug in Mary? I’m repeatedly trying to upload a 4/5 mb file and it won’t do it. And if its not the plug in I suspect the server, which means is there anything I need to check and/or modify in the plug in so it will work?

- the server’s fine for every other txp function, and for using an ftp client.

Offline

#28 2007-02-26 18:22:52

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

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

Is there any file size limit built into the plug in…

No.

You need to increase the file upload size (advanced options), and you may need to increase the limit within PHP itself (which you may or may not be able to do with your host).

Offline

#29 2007-02-26 21:17:06

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.

I may be thinking of this wrong and this may be possible already but here it goes. I would like it if upm_article_file_list could take the category attribute. Here is an example of my article form to help explain why I would like this:

<tr>
    <th scope="row"><txp:title /></th>
    <td><txp:custom_field name="Job_Number" /></td>
    <td><txp:body /></td>
    <td class="currency"><span>$</span> <txp:custom_field name="Estimate_M" /></td>
    <td><txp:upm_article_file_list break="" form="planHolders_file" category="plan-holders" /></td>
    <td><txp:upm_article_file_list break="" form="bid_file" category="bid-tab" /></td>
</tr>

Notice the two different category attributes, that I would like to see possible, using your tag. This would allow me to associate multiple files from different categories with an article in the “Write” tab. Then allow me to output those article files into two different columns in the html.

Is this already possible another way or could it be added to the current plugin?

Thanks Mary.

Last edited by tinyfly (2007-02-26 21:17:53)

Offline

#30 2007-02-27 02:58:41

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

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

Yeah, that isn’t currently possible, I don’t think. I could add it, though.

Offline

#31 2007-02-27 15:17:26

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.

You would be my hero if you did. :)

Offline

#32 2007-03-12 07:44:19

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

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

Wait, could you not do this with if_different?

Offline

#33 2007-03-12 15:16:53

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.

If you can I sure can’t figure it out. Doesn’t upm_article_file just output a list of all files attached to an article? I not really sure how if_different would be able to tell if the files are assigned to a different file category. Say I had 4 files in 3 different categories. How would I know which files are going to be placed where, if I wanted them in specific places by category?

If it is possible could you give me an example how this would work?

Offline

#34 2007-03-13 16:57:43

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

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

Well, for specific places it wouldn’t work. If you merely wanted them to be separated by category, it would.

You’d have the plugin tag sort by file category, then by however you want to sort each file. Then you’d use if_different within the file form.

I’m working in the category function, just thought if_different might serve in the interim.

Offline

#35 2007-03-13 17:13:08

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.

Ah, I see. That is handy to know. Unfortunately if_different doesn’t work for me in this case.

Offline

#36 2007-03-22 20:28:10

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.

Hey Mary, any progress on adding the category functionality? Thanks for the help.

Offline

Board footer

Powered by FluxBB