Trick the Sharepoint Query String (URL)

Adding some parameters in the URL i.e. QuerySting gives some bonus , specially for the pages where “EditPage” is not available from Site Settings.

It Even works if there is no SiteSettings assigned to user( Should we take it as BIG security BUG ?  )

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 this way is more easier, as to just trick the URL and you will have NewForm.aspx in Edit Mode in Browser. !!!!!!

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

Different combinations of this parameters gives some time saving benefit of editing the same page in designer.

So for example, say you wanted to edit the Shared view of the default page:
default.aspx?mode=edit&PageView=Shared

Say you wanted to Browse web parts and add them to your Personal view:
newForm.aspx?ToolPaneView=2&PageView=Personal

– Put page in Webpart Maintenance mode

placing ?contents=1 in query string(URL) lets user to have a page in webpart maintenance mode, where its possible to reset or delete any of webparts of that page.
This helps specially when some webpart is mal functioning or having error, and due to it entire page is not able to load.

e.g    AllItems.aspx?contents=1 will open
Web Part Page Maintenance: AllItems

Advertisements

16 Comments

  1. June 11, 2009 at 2:28 PM

    […] a small list that I have initially taken from the author at Abstract Spaces. I’ll add to this list as I think of […]

  2. Marion said,

    August 31, 2010 at 6:07 PM

    Thanks for this tip.

    Ive used “contents=1” a good bit in the past, but never payed attention to the other parameters until I need them but forgotten them at the same time.

    *bookmarked*

  3. June 6, 2011 at 6:05 PM

    […] tutorial show you how to use Trick Sharepoint Query String: Adding some parameters in the URL i.e. […]

  4. Jiten said,

    June 9, 2011 at 6:57 PM

    Thanks for this simple but very helpful post. I had made changes to namespace of the webparts which were existing on pages. Hence, the webpart pages were resulting in Webpart error. And i cudnt find a way to edit page/open page in maintenance mode to delete old webpart and reload new webpart. the “Contents=1” part saved me time in recreating the pages all over again.
    Thanks a lot 🙂

  5. JEB said,

    July 14, 2011 at 10:44 AM

    i HAVE USED THE TOOLPANEVIEW=2 YOU CAN ALSO USE &TOOLPANEVIEW=2 TO ADD A WEB PART WHEN INSIDE THE EDIT FORM URL TO ADD A CONTENT WEB PART TO THE EDIT FORM.

    YOU CAN THEN USE JAVASCRIPT TO CREATE CASCADING MENUS ON THE FORM AS WELL AS DYNAMIC ARRAY TABLES WITH JAVASCRIPT IN THE FORM.. ALL ON THE CLIENT SIDE…

  6. August 13, 2011 at 12:22 AM

    […] need to update the paths to your JQuery library, option text, and image paths. You can use the ‘ToolPaneView=2′ hack to put your NewForm.aspx page into edit mode. Then add a ‘Content Editor’ webpart to […]

  7. Christos K said,

    April 3, 2012 at 3:50 PM

    How would you check-out a page? They don’t seem to work on pages with publishing feature

  8. March 18, 2013 at 5:49 PM

    […] Trick the Sharepoint Query String (URL) « Abstract Spaces […]

  9. June 28, 2013 at 2:19 PM

    What’s up every one, here every person is sharing these kinds of familiarity, therefore it’s
    fastidious to read this web site, and I used to pay a visit this
    web site all the time.

  10. December 19, 2013 at 12:45 AM

    […] to Abstract Spaces for this information, and if you are like me that had some difficulties with calculating dates they […]

  11. January 27, 2014 at 9:12 PM

    Hi,
    Good job!
    Now we have got a simple, amazing, very powerful and of course surefire method to help parents to teach
    their babies and samll young children learn how to read effectively and
    fluently! Sure your baby can read, even before he or she is
    years old!!
    Our strong and Step-by-Step plan is an unique and
    also sure-fire learning to read program many
    mothers and fathers have used in order to basically and successfully assist and train their
    children to read in a short time : investing simply 10 to 15 minutes every day.
    The plan is fine to help you educate babies and toddlers to learn
    to read. Whether or not your baby is 2 years aged, 3 years old, four years old, or
    in pre-school, kindergarten, our system will help your youngster turn into a fast and fluent reader.
    We’ve the actual amazing results to confirm our system!
    Only visit our web page.

  12. March 3, 2014 at 5:47 PM

    Hello mates, its wonderful article on the topic of cultureand fully explained, keep it up all the time.

  13. brustvergrösserung said,

    October 4, 2014 at 2:35 AM

    Oh my goodness! Awesome article dude! Thanks, However I am experiencing problems with your
    RSS. I don’t know why I am unable to subscribe to it.
    Is there anybody having similar RSS issues?
    Anyone who knows the solution will you kindly respond?

    Thanx!!

  14. jeremyleff said,

    August 18, 2015 at 10:58 PM

    ?InitialTabId=Ribbon.Read Hides the Ribbon Bar by default!

  15. January 18, 2016 at 12:14 PM

    Hallo, dies ist guter Text! Ich habe für meine Jungs vielfältige
    Baby Thermometer immer bereit… Eins mit dem meinereiner
    am Po messen kann & ein anderes für das Gehörgang!
    Dieses eignet sich enorm fein, wenn man die Köpertemperatur simpel einmal untersuchen will – Auch im Schlaf.

    Dabei reichen Ohr Thermometer vollkommen aus und erfassen unserer Ansicht nach
    ebenfalls ganz schön.

  16. March 29, 2017 at 10:15 AM

    […] display form to page edit mode via the ToolPaneView=2 query string parameter (see more useful hints here), for […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: