R – SharePoint – Rendering a wiki page without navigation bars

sharepointsharepoint-2007

We use the SharePoint 2007 wiki, and I'd like to embed the contents of a wiki page onto our SharePoint Site's Default.aspx.

There is a 'Page Viewer Web Part'. This can create an IFRAME which you can point at any URL… including the wiki page… but that includes tons of navigation bars and chrome. I'm hoping there's a way to strip the nav bars out of the page when rendered in this IFRAME.

Googling has found other people asking this question… with no answers that help me, e.g. http://social.technet.microsoft.com/Forums/en-US/sharepointsocialcomputing/thread/f5cd69a4-ea71-48d9-a607-69341e80fe10

Appreciate if anyone can help? Note that I am a peon developer; I have Full Control over this one SharePoint site but no broader access to the server it's running on.

Best Answer

Since the content of the SharePoint Wiki page is indexed in the content database by page name, simple re-hosting the content is probably not possible.

Therefore, a more feasible approach would be to load the wiki page into an IFRAME and then using Javascript code to modify the properties of the controls you want to 'hide' by either setting their visibility to hidden or their width/height to 0. Not as elegant or efficient, but it will do the trick.

Note: use the Developer Tools in IE8 (or something equivalent) to inspect the live HTML DOM of your page and experiment with modifying the attributes.

Related Topic