Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify (how to implement a custom action)

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 807 Views
  • nicolant
    Community Member
    6 Posts

    Uploadify (how to implement a custom action) Link to this post

    Anyone, please point me in a right direction.

    I want to add a new tab to ImageUploadField, and to place there a field to enter a timecode, and button to get preview from FLV attached via FileUploadField above, as shown in the image:

    I've extended ImageUploadField and set a new template for it, with code for butrton as:

    <button type="submit" class="{'url' : '$Link(extract)'}">Extract from video</button>

    But where (in which class) to place a "function extract(...)" and why Firebug console shows corresponding request as
    i.e. without /extract chunk after "DetailForm"?

    Thank you in advance, and sorry for not so good English...

  • UncleCheese
    4085 Posts

    Re: Uploadify (how to implement a custom action) Link to this post

    I assume you have created a subclass of ImageUploadField? The function can go in there. Form fields are actually controllers. Just don't forget to add the "extract" action to your allowed_actions, too.

    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

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.