orchardcms - How to use/add existing Media Library widget into a custom widget in Orchard CMS? -
i'm writing custom widget, want create form contains image picker selects image existing media library. i've noticed use existing media library widget, have no idea how include in widget. can import editpart view somehow ?
[update] here part of sample code. assuming have edit part template:
@using medialibrary.filepicker //is there way add doing this?? @model maps.models.mappart <fieldset> <legend>map fields</legend> <div class="editor-label"> @html.labelfor(model => model.latitude) </div> <div class="editor-field"> @html.textboxfor(model => model.latitude) @html.validationmessagefor(model => model.latitude) </div> <div class="editor-label"> @html.labelfor(model => model.longitude) </div> <div class="editor-field"> @html.textboxfor(model => model.longitude) @html.validationmessagefor(model => model.longitude) </div> </fieldset>
just add media library picker field.
Comments
Post a Comment