Document Manager - Sorting libraries list - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Document Manager - Sorting libraries list

  • Document Manager - Sorting libraries list
  • 347581_documentsManager.JPG
    When working in a content block and using the Document Manager to insert a document from already uploaded documents, a list of document libraries is presented.

    We have a large number of document libraries and would like to sort the list of libraries alphabetically. Is there a configuration option to have this list sorted by the Title of the document libraries?

    Thanks,
    Antoine
  • Hello,

    To sort the list of libraries alphabetically you should follow the steps below:
    1. Go to your SDK folder.
    2. Select Content -> Resources -> WidgetTemplates -> Designers -> Libraries.
    3. Copy the control MediaContentSelectorView to a new folder.
    4. Open it and add this sorting field:

    <DefaultSortExpression ="Title ASC">

    5. Open your project
    6. Go to Administration -> Settings -> Advanced -> Controls -> View map
    7. In the field HostType add:
    Telerik.Sitefinity.Modules.Libraries.Web.UI.Designers.MediaContentSelectorView
    8. In the LayoutTemplatePath write: ~/MediaContentSelectorView.ascx
    9. Save the changes
    10. Go to you project in Visual Studio and add the updated control
    11. Right click and select Include In Project
    12. Build the project

    For your inconvenience I have recorded a sample video demonstration.Please do not hesitate to get back to me if any problems persist, I'll be glad to assist you further.

    Regards,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • Thanks! This works perfectly :)
    Does exactly what I was looking for.
    O.