Wednesday, March 26, 2008

Creating web part pages in a custom Pages library

I just created a new document library called "IS Email Newsletter Pages" and set the content type to Pages with the idea that this would create a new place to store web part pages in my SP site.

When i click on New on the document library toolbar i am redirected to Create Page where we fill in the page title, description, URL name and layout type etc.

I was expecting the URL name to reflect the new document library URL (IS Email Newsletter Pages/testpage.aspx) but it doesn't - it still points to the original Pages library (Pages/testpage.aspx) and when the page is created it is created in the Pages library.



Does anyone know how to create pages in a custom pages library???

3 comments:

  1. I don't suppose you ever found the solution to this did you?

    ReplyDelete
  2. Im afraid not Paul - ive been sidetracked with other stuff but will post an answer when i find one.

    ReplyDelete
  3. The problem is, that the default CreatePage.aspx document template (which is part of the publishing feature) automatically selects the Pages library (Which too comes with that feature) as the storage for pages created, using that page.

    You can create a custom CreatePage, and assign it to your content type (go into your content type settings, click advanced settings, you'll see the reference to the createpage.aspx).

    It's a shame it also doesnt select the content type that the page you are requesting to create comes from either. That really sucks.

    M

    ReplyDelete