Sitefinity 3.7 - How to get the Title of a Library Item

Posted by Community Admin on 04-Aug-2018 16:09

Sitefinity 3.7 - How to get the Title of a Library Item

All Replies

Posted by Community Admin on 27-Jan-2014 00:00

Hi,

Seems like an easy thing, but I can't seem to figure it out.  I am using this to get the library:

            LibraryManager libraryManager = new LibraryManager();

           

            var lib = libraryManager.GetLibrary(libraryName);]

           if (lib != null)

           

                IList items = lib.GetItems();

                foreach (IContent item in items)

               

                    //I need item.Title here

               

           

 

 

I tried item.GetMetaData("Title") but that doesn't work.

Thank you

 

Edit: Nevermind.  This was a data sync issue

This thread is closed