We have requirements where we need to add multiple pages libraries on a site, but this seems impossible to do via both the GUI and code.
Is it all possible / supported ?
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 community
Web Part Pages and Wiki pages can be stored in any document library as long as the appropriate content type has been added to the library via its settings.
However, the library actually named "Pages" is created & maintained by the Publishing feature. Attempting to rename or delete it will probably not work and/or cause problems.
If you want to create Publishing (i.e. - 'Article') pages, but NOT put them in the default Pages library, then you can simply create a normal document library and then add the appropriate content type to it afterwards. Any content type added to a library will show up as an option under the "New Document" button in the ribbon. With SP2013, you can even use the JSLink option to add buttons to your list interface, thereby creating each content type with a single click.