Sign In
|
Home
|
Find a Member
|
Find a Group
|
Help
Community Search
SharePoint Blogs
Discussions
Groups
Mossasaurus
Book Reviews
Videos
History
|
Incoming Links
Recent Changes
Business Connectivity Services (BCS)
Records Management
Event Id 5586
Content Types
Record
View All Pages
A
A
A
Font Size
Print This
Email This
Report This
Join Now!
Edit Control Block
Ever wanted to add your own items to a list item drop down? Use javascript in a CEWP to edit the ECB.
Try this code:
<script language="javascript">
function Custom_AddListMenuItems(m, ctx)
{
var strDisplayText = "Your Item Here";
var strAction = "STSNavigate('"+ctx.listUrlDir+"/YourPage.aspx?ID=" + currentItemID + "')";
var strImagePath = "";
// Add our new menu item
CAMOpt(m, strDisplayText, strAction, strImagePath);
// add a separator to the menu
CAMSep(m);
// false means that the standard menu items should also be rendered
return false;
}
</script>
Title
Last modified at 6/5/2009 3:35 PM by ghina siddiqui