Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-13 13:14:10

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

custom fields for files

(spinning off from this expired thread: http://forum.textpattern.com/viewtopic.php?id=7431 )

I’ve been working on a plugin for adding custom fields to file downloads. (In my case, things like the author and published source of pdfs.) What I have right now is specific to the site i’m working on, but it could easily be generalized. It also requires that you add the new tables by hand so to speak in phpMyAdmin. I need some help with basic plugin development stuff. If anyone is interested in having such a plugin or in helping finish it, let me know.

Last edited by mattgilbert (2007-02-13 13:22:22)

Offline

#2 2007-02-26 00:49:06

kwshaner
New Member
Registered: 2006-10-23
Posts: 4

Re: custom fields for files

I would love this plugin as author for files is something i’d greatly appreciate. If I were better at developing plugins i’d jump right in but I’ll help in anyway if I can.

Offline

#3 2007-02-28 12:43:38

mattgilbert
Member
Registered: 2006-03-23
Posts: 70

Re: custom fields for files

Thanks. I just need a few pointers from somebody about how to add tables to the database when a plugin is installed (I did it by hand) and maybe some pointers on managing preferences.

Offline

#4 2007-02-28 15:09:14

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: custom fields for files

Look in the update folder. The update scripts give you a good idea of how to handle adding tables and columns using the TXP db functions. I’d be happy to send you the source for hak_tinymce which handles preferences in it’s own table if you think it might help (or just download it and export it from plugin composer).


Shoving is the answer – pusher robot

Offline

#5 2007-05-24 10:43:23

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: custom fields for files

Matt – I can’t offer any technical advice but this would be a really useful plugin for me should it ever come to life. if you need any help testing please ask :)

Offline

#6 2008-07-03 21:38:42

georgeM
Member
From: Toronto, Canada
Registered: 2006-02-27
Posts: 43
Website

Re: custom fields for files

Hey all,

I was actually VERY interested in obtaining this type of functionality in my TXP v4.0.6 install. Basically I need to allow for more custom_file_fields so that I can attribute extra information to my downloads (such as a “clean” name, a couple of external links, possibly a picture). I have been hunting for the solution, and I still haven’t come across it.

I am by no means a plugin author, but I’m sure I could hack my files to support this. There was a mod article on textpattern.org, but it was meant for v4.0.3 (won’t try it out unless i know it works on 4.0.6). My ideal implementation would be similar to the article custom fields, but rather have “custom_file_field_1”, etc. displayed with input boxes on each file details page (reached by clicking the file under CONTENT —> FILES.

I love textpattern and the whole community, I think everyone is really a bright person, and having this functionality in future versions of TXP would definitely help out those who really need to customize the hell out of their TXP File Download listings.

Looking forward to a reply, and thanks in advance!

- George

Offline

#7 2008-07-04 08:34:47

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: custom fields for files

George,
I think an easier way could be to associate each file with an article (with upm_file).
This way you could have at your disposal all the custom fields you want and an article _image field too.

Offline

#8 2008-10-06 14:35:06

-rr-
Member
Registered: 2005-09-11
Posts: 73

Re: custom fields for files

What is the status on the plugin? I would sure find it very helpful. Multiple categories for files would be an very good option to custom fields…

Offline

#9 2008-11-07 17:28:54

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
Website

Re: custom fields for files

Hey!
any news?
is there a guide for v4.0.6 please?

Offline

#10 2008-11-07 21:27:53

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: custom fields for files

Interested too :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB