Try Now
More in this section

Forums / Suggestions / Name Overrides for the Managers

Name Overrides for the Managers

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    05 Jun 2011
    Link to this post
    Everything right now wants a GUID...like GetDocumentLibrary for example...

    Could you please give me an override which accepts the name?... :)
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    24 Oct 2016
    06 Jun 2011
    Link to this post
    Hi Steve,

    Thank you for the feedback on this. Indeed we have not introduced overrides that take the name as argument, however, it is recommended to work with Guid-s just in case that content item gets renamed at a later point in time, which might cause your code not to work anymore. If you prefer to get the items by their name you can still do that using Fluent API
    var myLibrary = App.WorkWith().DocumentLibraries().Where(lib => lib.Title == "MyLibrary").Get().FirstOrDefault();

    Best wishes,
    Boyan Barnev
    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
2 posts, 0 answered