Welcome to my blog mainly about SharePoint

CustomAction, NewMenu and mysterious blank control

As many SharePoint developers know the toolbars are very customizable via features. However, if you ever tried to add a custom control too the NewMenu you may have been plagued by the mysterious blank control:

Actually the problem I experience was, embarrassingly, I did not have my class set as “public”. Yes — the javascript is completely necessary for submenus (I figured the post to your blog would be sufficient enough for people to find).

After i removed the and run iisreset, And my entire menu gone…. even action, setting.. so i try to put this back, save it and iisreset again. It still no luck as menu still gone.. And one thing is nice which is i had backup the DefaultTemplates.ascx as you recommend. I used this to do the recover and it was back to normal. So.. do you know what is the problem….? Thanks in advance!!

LeoJ — Sorry about the long delay in response. Your message got hung up in the WordPress spam system. If you could replicate the problem, perhaps you could show me the source of your new controltemplate which would help me understand why it may not be working.

To the best of my knowledge, you cannot add custom controls to the MenuItemTemplate. However, you could probably create your own toolbar controltemplate and make it do whatever you want. This might be more effort than it is worth though. I’ll keep my eyes out to see if someone else has figured this out.

About

My name is Paul Liebrand and I currently reside in Southern California. I plan on writing about anything related Microsoft SharePoint.

Because of other interests I have , you may also see posts off topic here.

I also started a community wiki site that will be dedicated to Windows SharePoint Services and related technologies. I update it has frequently as I can, but I encourage others to check it out and contribute where possible. The site can be found at http://www.wsswiki.com.