7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 549 Views |
-
Uploadify (how to implement a custom action)

9 September 2011 at 3:49am
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
http://localhost/zavod/admin/EditForm/field/Media/item/3/DetailForm?SecurityID=...
i.e. without /extract chunk after "DetailForm"?Thank you in advance, and sorry for not so good English...
-
Re: Uploadify (how to implement a custom action)

10 September 2011 at 1:37am
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
| 549 Views | ||
|
Page:
1
|
Go to Top |

