Category Archives: SharePoint

Full Height Web Part

http://blogs.msdn.com/malag/archive/2008/09/15/story-of-a-mischievous-page-viewer-web-part.aspx

This will run a javascript in a separate but hidden content editor.  It will force all IFRAMES on the page to be 100% height, perfect for single page web parts (forms and such).

Note: This only works in IE (at least the script provided).  Then again, if you’re using SharePoint and anything other than IE you have a serious identity crisis going on :)

Share

How to Reset Permission Driven Quick Launch Links

For now I’m just going to post my comments in, I’ll form this up later to explain what I did.
Tables
NavNodes (location of the quicklaunch)
AllDocs (location of the document needed for the DocID in NavNodes
Find the row with the entry of a botched quick launch item (one that was deleted, then added back later).
The way the permissions work is that if there is a URL specified in the NavNodes part, it breaks the permission and treats it like a node that everybody can see.  However, if the DocID is set with the specific hex code (look below), and the URL is set to null, and ElementType is changed to 1(not entirely sure what this is for, maybe to specify if it’s custom….er something), then you can set it back up to how the quick launch works when you first make a site (based on the permissions of the site)
–select * from navnodes where siteid=’84EAD071-5977-4C59-AC79-71BD4988BE7D’ and webid=’AB489397-264F-4C9D-9791-59E44C0EDB66′ and eid=2016

select * from NavNodes where Name like ‘Team Site%’

select * from NavNodes where Name like ‘Web Services%’

–select * from alldocs where dirname like ‘%web_services/team_site%’ and leafname=’default.aspx’

–select * from NavNodes where Eidparent=1026

– 9CF75CF6-3204-4734-9336-00FF65F3E254

–select * from alldocs where id=’23A06CEE-87FE-4B2C-B9A3-0937ED66F6F5′

Edit: Who am I kidding, I’m not going to go back to this and clean it up.  Let’s leave it as is!

Share

SPDataSource Information

Below is all the information I have gathered thus far for using SPDataSource in Sharepoint. This allows the creation of custom lists by using other lists as the source and basically creating your own view. I’m still trying to figure out how to implement this, but this will be the key to getting cross-site document libraries working. I need this for Policies and Procedures.
Examples

http://jamestsai.net/Blog/post/How-to-query-cross-site-lists-in-DataFormWebPart—Part-1-Build-your-own-data-source-for-DataFormWebPart.aspx

http://blogs.msdn.com/sharepointdesigner/archive/2007/04/24/spdatasource-and-rollups-with-the-data-view.aspx

http://www.sharepointnutsandbolts.com/2008/06/spdatasource-every-sharepoint-developer.html

http://larslynch.blogspot.com/2010_01_01_archive.html

How to find the List ID in Sharepoint

http://nickgrattan.wordpress.com/2008/04/29/finding-the-id-guid-for-a-sharepoint-list/

The Class straight from M$

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spdatasource.aspx

Writing Custom Web Parts

http://weblogs.asp.net/scottgu/archive/2006/09/02/Writing-Custom-Web-Parts-for-SharePoint-2007.aspx

Share