I try to dynamically get the names of all the lists in my site using a content query web part, but apparently a CQWB can only retrieve the items in the list, but not the list name? I'm wondering how can i go this, maybe using jquery? Thank you very much for your help!!!
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
GetListCollection in Lists.asmx will get this for you. http://msdn.microsoft.com/en-us/library/websvclists.lists.getlistcollection.aspx Not yet sure if SPServices has implemented this, if not - give @sympmarc a shout on Twitter and suggest it to him :) |
|||||||||
|
|
+1 @james Here's the documentation to the SPServices library. http://spservices.codeplex.com/wikipage?title=Lists&referringTitle=%24%28%29.SPServices There isn't an example on there, but I'll post one here:
Hope this helps! |
|||
|
|
Another option is to use the JavaScript Client Object Model:
|
||||
|
|
