Geeks With Blogs

Tangible Thoughts SharePoint, MOSS? and all the other questions

As a Site Admin dont you hate those WSS Sites that have the default 'Top Navigation' removed, leaving you with no easy way of getting to Site Settings or the Create Page? Well I do, and I resorted to drastic measures recenlty.

Following Philips example I was able to squeeze a few minutes into writing a few IE context menus.

Here is the replacement script for launching the WSS Site Settings page

<script type="text/vbscript">
settings = "_layouts/1033/settings.aspx"
create = "_layouts/1033/create.aspx"
docsAndList = "_layouts/1033/viewlsts.aspx"

On Error Resume Next

set oWindow= external.menuArguments
if Err.Number = 0 then
if not oWindow is nothing then
fullurl = oWindow.location.href

ls = instrrev(fullurl ,"/")
ln = len(fullurl )

file = Right(fullurl ,ln-ls)

if Instr(file,".") >= 0 then
urlHd = Left(fullurl ,ls)

window.location = urlHd & settings

end if
end if
end if

Note: there is no need for the Contexts DWORD key

Stuff still do, convert the above in to a .net assemblly which if you are on the SP Box will work propperly no matter if you are in a list or document library etc. The snippet above only works only for pages at the root level of a WSS Site.

Posted on Thursday, March 24, 2005 12:04 PM SharePoint | Back to top

Comments on this post: IE Context Menus For SharePoint

# re: IE Context Menus For SharePoint
Requesting Gravatar...
That is a very interesting thought... I wouldnt mind seeing it one step further making it so you completely customize the right click that your users will see.... That could be powerful.
Left by Mark Kruger on Mar 24, 2005 6:44 PM

# re: IE Context Menus For SharePoint
Requesting Gravatar...
Design is also pleased. Well, there are more things to read in the internet. Thank you.Very nice presentation, I didn't know that we can use it for education as well.
Left by tiffany on Aug 01, 2009 7:15 PM

Your comment:
 (will show your gravatar)

Copyright © Tariq | Powered by: