By Adding query string parameters in the URL we can change mode of webpart page and also we can save time. Here we can see some query string and how web part page changes its mode.
How to put page in Webpart Maintenance mode
WebPart Maintenance page is an OOB page, which is used to manage the webparts in a webpart page. A webpart which is causing a problem in a webpart page can be removed using this page. Basically, a WebPart Maintenance page provides the list of all webparts added in a particular page and options to close or remove these webparts.
Sometimes after adding a webpart to the page, we get an error page with some message. But in this error page we wont get any SharePoint controls (like the SiteActions, Ribbon Menu etc.,), so we cannot edit the page and remove the webpart. Then we usually go to the edit form of the page (through page library) and then click on the 'Open Web Part Page in maintenance view' link, which opens the WebPart Maintenance page to remove the webpart which is causing the problem.
Instead of going to the Edit Properties form of the page, we can easily open the WebPart Maitenance page by just adding the following query string to the page URL
?contents=1
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?contents=1
For example there is no “Edit Page” Option available in any of lists “NewFrom.aspx”. so there is no other way then to go in sharepoint designer and then edit the page.
But there is a shortcut using URL and you will have NewForm.aspx in Edit Mode in Browser.
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?ToolPaneView=2
(OR)
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?ToolPaneView=2&mode=edit
The possible parameters with values are :
Add Web Parts/Browse ToolPaneView=2
Add Web Parts/Search ToolPaneView=3
Edit Mode mode=edit
View Mode mode=view
Shared Mode PageView=Shared
Personal Mode PageView=Personal
How to put page in Webpart Maintenance mode
WebPart Maintenance page is an OOB page, which is used to manage the webparts in a webpart page. A webpart which is causing a problem in a webpart page can be removed using this page. Basically, a WebPart Maintenance page provides the list of all webparts added in a particular page and options to close or remove these webparts.
Sometimes after adding a webpart to the page, we get an error page with some message. But in this error page we wont get any SharePoint controls (like the SiteActions, Ribbon Menu etc.,), so we cannot edit the page and remove the webpart. Then we usually go to the edit form of the page (through page library) and then click on the 'Open Web Part Page in maintenance view' link, which opens the WebPart Maintenance page to remove the webpart which is causing the problem.
Instead of going to the Edit Properties form of the page, we can easily open the WebPart Maitenance page by just adding the following query string to the page URL
?contents=1
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?contents=1
For example there is no “Edit Page” Option available in any of lists “NewFrom.aspx”. so there is no other way then to go in sharepoint designer and then edit the page.
But there is a shortcut using URL and you will have NewForm.aspx in Edit Mode in Browser.
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?ToolPaneView=2
(OR)
http://<SharePoint>/Lists/Orders_MPA/Item/newifs.aspx?ToolPaneView=2&mode=edit
The possible parameters with values are :
Add Web Parts/Browse ToolPaneView=2
Add Web Parts/Search ToolPaneView=3
Edit Mode mode=edit
View Mode mode=view
Shared Mode PageView=Shared
Personal Mode PageView=Personal
No comments:
Post a Comment