in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Marian Lishman's Blog

From STS to WSS and beyond :-)

Change to edit/disp dropdown

Someone in SharepointU gave some really cool code to change/add items to the edit dropdown. I have been using this but have come across a couple of issues:

Firstly, I created a Print drop-down which went to my newly created printform.aspx, however, I subsequently found that smigrate would only move the standard edit, disp and new forms and would break any others.

Secondly, where I had more than one list in a web part page and I wanted each one to go to its own form, It would only refer to one of the content editor pages so I needed to know the code to specify that and I finally found it - it is:

 var strAction = "document.location.href='" + ctx.editFormUrl + "?xStatus=Published&ID=" + currentItemID + "'"; 
 
(this is to go to the editform....)

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About lishmanm

STS, WSS v2 - 4 years WSS v3 - beginner :-)

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts