Name Overrides for the Managers

Posted by Community Admin on 05-Aug-2018 21:57

Name Overrides for the Managers

All Replies

Posted by Community Admin on 05-Jun-2011 00:00

Everything right now wants a GUID...like GetDocumentLibrary for example...

Could you please give me an override which accepts the name?... :)

Posted by Community Admin on 06-Jun-2011 00:00

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

This thread is closed