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?

  • You mean to list all document libraries in a particular site or sitecollection? – Amal Hashim Oct 27 '14 at 16:32
  • @AmalHashim - yes, that's correct. – Larry G. Wapnitsky Oct 27 '14 at 17:07

Using JavaScript you can query SharePoint Web service and use GetListCollection method


You can ease the programming by using 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
  • that's c#\vb. trying to minimalize hard coding for reuse – Larry G. Wapnitsky Oct 27 '14 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.