Reusing Find/Add media dialog

10 views
Skip to first unread message

Behrad Zari

unread,
Apr 7, 2013, 6:04:35 AM4/7/13
to zotoni...@googlegroups.com
I have a form in which I want to let the user find or add a media resource to attach to my form, I will use that medium url in my services.
I checked admin templates, something like admin_connect_media_dialog helps me but without the connection to subject_id since I have no
subject resource and want to find/add media to return me the selected/uploaded media resource id. How can I achieve this reusing the admin templates?
and How can I copy the media absolute url using m.media[id].filename to a variable!? (like the usage in url scomp)  

Behrad Zari

unread,
Apr 7, 2013, 9:02:17 AM4/7/13
to zotoni...@googlegroups.com
I tried 
action=dialog_open with template="_action_dialog_connect.tpl" and callback="$.my_callback" 
to get the uploaded resource (upload works) 
but find tab doesn't show any results (nothing to select)!!!
Reply all
Reply to author
Forward
0 new messages