SP.Site.getCatalog(typeCatalog) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Applies To
Remarks
Specifies the list template gallery, site template gallery, Web Part gallery, master page gallery, or other galleries from the site collection, including custom galleries that are defined by users.
var value = SP.Site.getCatalog(typeCatalog);
Parameters
- typeCatalog
Specifies the list template type for the gallery.
Type: Int32
Return Value
Type: SP.List
Applies To
Remarks
This method requires permissions to the top-level site of the site collection, which is where the galleries are located.