Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adding meta-data to files

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

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

Page: 1 2
Go to End
Author Topic: 2801 Views
  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Adding meta-data to files Link to this post

    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.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Adding meta-data to files Link to this post

    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.

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Adding meta-data to files Link to this post

    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.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Adding meta-data to files Link to this post

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

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Adding meta-data to files Link to this post

    Thanks for the quick replies!

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

  • bennybtl
    Avatar
    Community Member
    12 Posts

    Re: Adding meta-data to files Link to this post

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

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Adding meta-data to files Link to this post

    Nope...... ;-(

  • bennybtl
    Avatar
    Community Member
    12 Posts

    Re: Adding meta-data to files Link to this post

    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.

    2801 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.