I have a site with a large number of document libraries. There are constant adds / archiving of document libraries, so the list changes.
Is it possible to generate a dynamic list of links to these libraries using a CQWP / DVWP?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI have a site with a large number of document libraries. There are constant adds / archiving of document libraries, so the list changes.
Is it possible to generate a dynamic list of links to these libraries using a CQWP / DVWP?
Using JavaScript you can query SharePoint Web service and use GetListCollection method
http://msdn.microsoft.com/en-us/library/websvclists.lists.getlistcollection(v=office.14).aspx
You can ease the programming by using SPServices.
$().SPServices({
operation: "GetListCollection",
completefunc: function (xData, Status) {
$(xData.responseXML).find("[nodeName=List]").each(function() {
var list_Title = $(this).attr("Title");
var list_URL = $(this).attr("DefaultViewUrl");
//Add logic to display hyperlinks
});
}
});