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

Forums / Developing with Sitefinity / Sitefinity 3.7 - How to get the Title of a Library Item

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

1 posts, 1 answered
  1. Jason
    Jason avatar
    12 posts
    Registered:
    18 Sep 2006
    27 Jan 2014
    Link to this post

    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

    Answered
1 posts, 1 answered