3

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 ?

  • You can store aspx pages on any document library. So, What's the problem? – Jesús López Feb 25 '15 at 16:16
  • Store, yes, but not create. Try creating article pages in a Documents library and see what happens. – Ilyas Feb 25 '15 at 16:29
  • 1
    What happens? I've just created a document library "articles" added a web part page "simple.aspx", opened it on IE, edited and saved. – Jesús López Feb 25 '15 at 16:47
  • In SharePoint Foundation 2013 go to site content, add an App, Wiki page library. But actually you can host whatever aspx page on whatever document library. The difference is that you don't have a button to add the page, but it can be done. – Jesús López Feb 25 '15 at 16:55
  • How did you add the page ? I did the same on a documents library, and tried to create an aritcle page (publishing), and get an exception: Application error when access /_layouts/15/CreatePage.aspx, Error=Value does not fall within the expected range. at Microsoft.SharePoint.Utilities.SPUtility.CreateParentFoldersForFile(SPList list, String url, Boolean createAsListItem) at Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage.NewPageItemSave(String pageName, PageLayout pageLayout, String folderUrl, Boolean redirect) – Ilyas Feb 25 '15 at 17:00
4

The answer to this question is: No, it is not possible to create another library with the same functionality as Pages on a publishing site.

  • @llyas The answer to this question is: Yes, it is not possible to create another library with the same functionality as Pages on a publishing site. – Akshay Dattatray Nangare Dec 20 '15 at 8:22
2

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.

  • It doesn't work that way. Everybody I ask suggest to simply add a content type to a document library, but try to add the content type of article page and try to create a page with that content type in the document library: It will give an exception. As far as I can see there is no way to create a new library (of course with another name than pages) that functions like a Pages - library. – Ilyas Feb 25 '15 at 21:01
  • That sounds like some sort of issue with your environment. Normally, as long as the publishing feature is turned on, you should be able to add the content type to any library. Make sure the page layouts are available via site settings. – Omegacron Feb 25 '15 at 21:03
  • The content type is added perfectly, but it is when you create an article page in a document library (that is not Pages) you will get the exception when trying to save. – Ilyas Feb 25 '15 at 21:06
  • 1
    Sounds like either a feature or page layout isn't enabled. I'll poke around and see what I can find. – Omegacron Feb 25 '15 at 21:13
  • Cool. I poked around all day, and found no way to make it work. – Ilyas Feb 25 '15 at 21:14
0

You can add Pages content types, such as Enterprise Wiki Page, to any document library but you will not be able to create any documents using them. These content types only work in the Pages library. SharePoint 2013 on-prem.

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.