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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Adding meta-data to files


Go to End


10 Posts   4068 Views

Avatar
Fuzz10

Community Member, 791 Posts

24 July 2007 at 8:57pm

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

Administrator, 690 Posts

25 July 2007 at 2:32am

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

Community Member, 201 Posts

25 July 2007 at 9:40am

Edited: 25/07/2007 9:45am

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

Administrator, 690 Posts

25 July 2007 at 8:01pm

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

Avatar
Fuzz10

Community Member, 791 Posts

25 July 2007 at 10:38pm

Thanks for the quick replies!

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

Avatar
bennybtl

Community Member, 12 Posts

9 September 2008 at 9:24am

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

Avatar
Fuzz10

Community Member, 791 Posts

9 September 2008 at 7:24pm

Nope...... ;-(

Avatar
bennybtl

Community Member, 12 Posts

10 September 2008 at 3:54am

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