Monday, December 20, 2010

SharePoint Edit page URL - querystring parameters

Open a listform page in edit mode without using designer!!

One day got a request to add a webpart in the Newform.aspx of a list. Generally, to add webparts to pages that cannot be edited through the browser, the approach generally followed is to edit the page in designer and add a webpart zone and add the webpart.

But unfortunately i didn't have access to the designer and needed to add the webpart urgently. So found a workaround, maybe not a neat solution, but it works!

Using the SharePoint querystring parameters, we can go to the edit mode of the Newform.aspx through browser. 

So to enter the edit mode, i gave the below URL
newForm.aspx?ToolPaneView=2&PageView=Shared
This opened the page in the edit mode, and i was able to add the webpart.

Drawback - We cannot add webpart zones if layout changes are needed; we need to resort to designer for that :)

Other useful querystring options:
QueryString
Operation
ToolPaneView=2
Can browse and add webparts
ToolPaneView=3
Can search and add webparts
Mode=edit
Edit mode
Mode=view
View mode
PageView=Shared
Shared mode
PageView=Personal
Personal mode
Contents=1
Opens webpart maintenance page – can add or delete webpart on a page

4 comments:

Mahesh Srinivasan said...

Very helpful indeed

Bangaloreweb guru said...

Such a nice article. Thanks for sharing a wonderful articles Web Designer in Bangalore | Website Designers in Bangalore

Unknown said...

Great Article, Thanks.
Online Marketing Services
Best SEO Company Bangalore
seo pricing in india

influence marketing platform said...

Nice blog, very interesting to read
I have bookmarked this article page as i received good information from this. Twitter Influencer Marketing