Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Adding meta-data to files


Go to End
Reply

10 Posts   2844 Views

Avatar
Fuzz10

24 July 2007 at 8:57pm Community Member, 787 Posts

Hi,

I'm currently working on a site in which I use a filestore to store downloadable whitepapers (PDF files). it would be very handy to be able to add meta-data to the files (normal CMSfield types would be great) so the user can add descriptions / titles.

Avatar
Sam

25 July 2007 at 2:32am Administrator, 685 Posts

Your best bet here is probably to hack the core, I don't believe there's an API for extending this.

You'd want to add fields to the File class, and add edit fields to the ComplexTableField in AssetAdmin.

Avatar
Tim

25 July 2007 at 9:40am (Last edited: 25 July 2007 9:45am), Core Development Team, 201 Posts

Hi Lars,

Let us know how you get on with this as I agree it would be a really useful to have this extension. When used with the "FileRepository.php" feature (which I believe is included in the new gallery module) you would be able to create a basic "read only" document listing module.

In the context of the gallery, the way it works is you select a folder from the assets directory, which then automatically creates a data feeds of all images files in that directory for display on the site.

Avatar
Sam

25 July 2007 at 8:01pm Administrator, 685 Posts

Yeah - it would be great if you could post a patch file or something.

Avatar
Fuzz10

25 July 2007 at 10:38pm Community Member, 787 Posts

Thanks for the quick replies!

I'll keep you updated , but first ... 2 weeks of holiday time for me ! ;-)

Avatar
bennybtl

9 September 2008 at 9:24am Community Member, 12 Posts

I was just going to ask this, did anything ever become of this project?

Avatar
Fuzz10

9 September 2008 at 7:24pm Community Member, 787 Posts

Nope...... ;-(

Avatar
bennybtl

10 September 2008 at 3:54am Community Member, 12 Posts

any reason? technical difficulties? because I need to do this.

I'm creating a site for an artist, and I don't want to create an individual page for each piece- I need to attach meta-data to each image in a gallery folder (year, medium, size, price, sold). I see that the "file" table holds the caption field, I may try adding fields here as Sam suggested.

Go to Top