locked
Custom Web Part Page Layout RRS feed

  • Question

  • Hi,

    I want to create a custom web part page layout in Sharepoint 2010. The 8 layouts that are already present do not suffice our needs. I found an article for this for WSS 3.0 but that solution is not working and it gives an error when we create a new page using that layout. I am able to create an additional spstd9.aspx in 1033/STS/DOCTEMP/SMARTPGS. The main part causing problem here is the change in code for page "spcf.aspx". 

    If anyone has done this, please share your solution.

    Thanks

    Sulabh

    Friday, November 23, 2012 7:53 AM

Answers

All replies

  • Hey,

    Suggest me if i am wrong in understanding your problem.

    You want to create a new page layouts where you can place webparts right?

    you can easily do it in the SharePoint Designer.

    Go through following links :

    http://blog.henryong.com/2010/06/08/how-to-create-custom-sharepoint-2010-page-layouts-using-sharepoint-designer-2010/

    http://blog.pixelmill.com/856/sharepoint-2010-create-a-custom-page-layout-for-a-publishing-site-using-sharepoint-designer/


    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

    Friday, November 23, 2012 8:00 AM
  • Hi,

    You need to create a new page layout.

    You can find a sample in this code samples: SharePoint 2010 101 Code Sample - in the WCM_PageLayout project.

    For designing the page layout using SharePoint Designer check this blog post: How to Create Custom SharePoint 2010 Page Layouts using SharePoint Designer 2010.

    Cheers,

    Dan.


    You can find my blog here: http://developertrack.blogspot.com

    Friday, November 23, 2012 8:06 AM
  • Thanks Ravi but your solution is for publishing pages whereas I am looking for a solution specifically for web part pages.

    Something like this except that it is not working
    http://doitwithsharepoint.blogspot.in/2011/08/create-web-part-pages-with-custom.html


    Friday, November 23, 2012 8:13 AM
  • Dan,

    Your solution too is for publishing pages. My guess was that this would be a common problem given that web part page layouts are limited. How do you do it in case of team sites? 

    Friday, November 23, 2012 11:41 AM
  • Hi Sulabh,

    To custom the web part page layouts, there is also a sample shows how to do this with SharePoint Designer, you can have a try:
    Creating your own Web Part Page Layout Template:
    http://www.manageprojectsonsharepoint.com/blog/2011/03/14/creating-your-own-web-part-page-layout-template/

    Thanks,


    Qiao Wei
    TechNet Community Support

    • Marked as answer by Qiao Wei Monday, December 3, 2012 1:20 AM
    Tuesday, November 27, 2012 6:51 AM
  • I have used this successfully in the past. Here is a link to a blog post by a SharePoint developer in India.

    http://sandeeppawar.blogspot.com/2012/06/create-custom-web-part-page-template.html

    I've done this and it works.

    Friday, December 7, 2012 10:05 PM
  • Thanks Alex. I tried this and though it works, there are some issues. Like the Title bar properties button does not work. Did you face this issue?
    Saturday, December 8, 2012 6:47 AM