+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity UX / Document Manager - Sorting libraries list

Document Manager - Sorting libraries list

3 posts, 0 answered
  1. Antoine
    Antoine avatar
    45 posts
    Registered:
    13 Jul 2012
    29 Mar 2012
    Link to this post
    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
  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    06 Dec 2016
    02 Apr 2012
    Link to this post
    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
  3. Owain
    Owain avatar
    110 posts
    Registered:
    17 Jan 2012
    10 Aug 2012
    Link to this post
    Thanks! This works perfectly :)
    Does exactly what I was looking for.
    O.

3 posts, 0 answered