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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -