Search code examples
sharepoint-2010sharepoint-designer

How To: Disable "add new page" for site page data views?


Using Sharepoint Designer for Sharepoint 2010 is it possible to disable, or better yet remove, the "Add new Page" link at the bottom of a Site Pages Data view?

I'm looking for a checkbox or something that says "disable adding new pages" or something like that.


Solution

  • Try this:

    using SharePoint Designer

    1) open your site to sharepoint desinger 2010.

    2) goto List & Libraries > Document libraries > Site Pages

    3) open your view in with Edit File in Advanced Mode(Right click on view)

    4) search Toolbar node tag in XsltListViewWebPart and replace this.

    <Toolbar Type="None"/>

    using edit page

    1) edit your Default page using Site Action > Edit Page.

    2) Edit webpart > Toolbar type > No Toolbar.

    enter image description here

    Applied than Okay.

    Hops it helps!!!