in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Marian Lishman's Blog

From STS to WSS and beyond :-)

May 2004 - Posts

  • 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....)


Need SharePoint Training? Attend a SharePoint Bootcamp!

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