I ran across a neat SharePoint trick in Todd Bleeker’s 60 Hive blog. It’s a quick way to add webparts to Document Library and List views including AllItems without having to go into FrontPage. This is really useful when you want to add a instructions or descriptions on one of these standard pages.
Here’s what to do:
- Navigate to the Document Library or List View you want to add a part to.
- Now replace the URL in the Address Bar with one of the JavaScript snippets below and hit return.
- From here you can import a web part or drag a standard one in from the gallery then click OK
Add Webpart From | JavaScript to Paste in the Address Bar |
add webparts – gallery | javascript:MSOTlPn_ShowToolPane(‘2’); |
add webparts – search | javascript:MSOTlPn_ShowToolPane(‘3’); |
add webparts – import | javascript:MSOTlPn_ShowToolPane(‘5’); |