Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2008-06-26 17:16:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
You’ll find it doesn’t in built-in Textpattern tags as well because the plugin uses the built-in function that handles this. This is for three reasons: smaller plugin; less code for me to write, debug and support; consistency with built-in tags.
li
is a special case, a short-cut. Tables can have all kinds of tags desired or not desired (caption
, thead
, tbody
, etc) which I think would be rather complicated to support and is better handled by forms. But you can feel free to present a case for adding support for this feature to the core developers (mention doWrap()
and they’ll know what you’re talking about).
Offline
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
No worries, I totally understand. I did look at your code and notice that you were using doWrap().
As we both know, it’s more than easy enough to just work around it in the form.
Morgan Aldridge
http://www.makkintosshu.com/
Offline
#75 2008-10-01 08:49:28
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
I have installed and activated this plugin. But the file link never shows up. In the form for my article I have placed a link that looks like this:
<li>Download:<upm_article_file_list form="fileLink"/></li>
Form fileLink looks like this:
<txp:file_download_link><txp:file_download_name /></txp:file_download_link>
Clearly I am missing something obvious about the basic operation of this plugin, but what?
Offline
#76 2008-10-01 11:07:16
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
Did you associate one or more file id (using a custom field defined under “extensions ->upm_file”) to your article?
Offline
#77 2008-10-01 13:09:47
- fangonk
- Member
- Registered: 2007-07-12
- Posts: 44
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
Yup. I used the file id.
Offline
#78 2008-10-01 13:54:38
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
Sorry fangonk I always used a code similar to yours and never had problems.
One last thing: are you sure you set the right custom field name under “extensions ->upm_file”?
If it is not the case I’m sorry I can’t help you further.
Offline
#79 2008-10-01 17:36:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
You’ve used an incorrect tag name. Try:
<li>Download: <txp:upm_article_file_list form="fileLink" /></li>
Offline
#80 2008-10-01 21:57:30
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
Oops, I missed it, Mary is right.
Offline
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
i tried reading through this thread and nothing is sinking in.
i’m trying to attach pdfs to articles.
in my article form i have:
<txp:body />
<txp:upm_file_article />
i created a custom field called “pdf”. in my article i have set the pdf custom field to be “1” because that’s the file ID of the first pdf uploaded in the files tab. in the extensions tab i set upm to be pdf.
Offline
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
mrtunes,
what do you have in your “files” form? (upm_file uses a form named “files” by default)
Offline
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
Sorry, I’m wrong (and you too ;) )
txp:upm_file_article
is just a replacement for txp:article
.
Yau may want to use txp:upm_article_file_list
on your article form (under txp:body
)
Offline
Re: [plugin] [ORPHAN] upm_file: Associate single or multiple files with an article.
maniqui wrote:
Sorry, I’m wrong (and you too ;) )
Yau may want to usetxp:upm_article_file_list
on your article form (undertxp:body
)
yyeahh! thanks that worked. and then i used the form “files” to kill off any unwanted data. i swear one day i have to compile all the stuff i get out of these threads into a big long document hehe
Offline