Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Attach multiple files/images to a page

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 3900 Views
  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Attach multiple files/images to a page Link to this post

    Following the method described in this post, I have been able to successfully set up tabs in the CMS to attach multiple files/images to a page. How can you then set up a drag n drop functionality to reorder the list of attached files? The way the form fields in the User Forms module can be reordered looks perfect.

    I know about the Has-many file manager module. However,
    - The module does not install properly in SS 2.3.0-rc2.
    - The files/images attached to a page have to be uploaded separately for each page from your computer. I need the files/images to be attached from the existing assets folder/subfolders. And when an attached file is deleted on a page, it remains intact in the Assets folder. The method described in this post achieves this, but not the reordering.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Attach multiple files/images to a page Link to this post

    Hi, Amir,

    I'm actually working on something right now that will be a perfect solution for this problem. It's called BulkUploaderField and it supports drag-and-drop management and of course bulk uploading. I'd love for you to beta test it for me. I should have something really rough by the end of the week.

    If you're just interested in drag-and-drop reordering, you should check out the SortableDataObject extension. You can get it off my website at www.carlinowebdesign.com. Documentation is here in the wiki.

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Attach multiple files/images to a page Link to this post

    Hi UncleCheese,

    I'd be glad to test the BulkUploaderField. It sounds promising. Will it allow you to select files from your existing files & images assets?

    I'll be looking into the SortableDataObject extension you mentioned as soon as I get some time.

    Thank you

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Attach multiple files/images to a page Link to this post

    Hi UncleCheese,

    I just had a look at the SortableDataObject extension. How can you use that extension in the CMS and not on the front end? I have a FileAttachment DataObject class and have used ComplexTableField to build the file attachment functionality for all Page types. Your templating requirements makes the extension applicable only on the front end.

    Thank you in advance.

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Attach multiple files/images to a page Link to this post

    Hi ..

    Have a look at this module.. It works perfectly for me...

    http://www.silverstripe.org/archive/show/134180

  • Amir Mostofi
    Avatar
    Community Member
    59 Posts

    Re: Attach multiple files/images to a page Link to this post

    Fuzz10

    Thank you for that. But, the Has many file manager module

    1. does not work on SS 2.3.0-rc2 and
    2. it does not let you choose files from your existing assets (files have to be uploaded separately for each page and are deleted completely from assets when removed from the page.)

    Do you have any solutions for the above issues?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Attach multiple files/images to a page Link to this post

    Sit tight.. I'm working on a prototype for a module that does exactly what you're looking for. It's a lot less clunky than the HasManyFileManager. I'd love for you to test it out. Just give me another day or two. Keep checking this thread.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Attach multiple files/images to a page Link to this post

    Hi, Amir,

    I've finished the module if you want to check it out. See this post:
    http://www.silverstripe.org/all-other-modules/show/251905

    I could use testers!

    3900 Views
Page: 1
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.