Is there a way to change the index of menu items in a SharePoint menu?

When the New menu item in a document library expands, it seems like you should specify a list of document templates for that list and New Folder as the last item (unless New Folder has been disabled). I added a new custom menu item, but it shows up after New Folder and I would like it to appear at index 0 to be the default action if the user clicks New rather than expanding the menu.

I tried deleting all document templates and disabling the New Folder menu item by adding a custom menu item and then enabling the New Folder menu, but then New Folder is inserted before my custom menu item ... doh.

Is there a way to make sure my custom menu item stays at index 0, or a way to make sure my custom menu item is the default menu item?

TIA

0


source to share


2 answers


OK, I found a workaround: disable the folder option and make sure the "Allow content type management" option is enabled. Then you can remove any existing content types from the list, and now the custom menu item is at index 0, but since the new menu item is not a content type, it won't be launched by clicking New, but it will do for now :-)



0


source


The only way I know this is using JavaScript to customize the order of the elements by manipulating the DOM.

If you think something, then I have a utility that will help: http://www.codeplex.com/ShUIE/



You can use this to define custom JavaScript that only works with invalid document library mode and then insert a piece of JavaScript (easier to use jQuery as it is available) where you can get the menu and accept New menu item and add it to the parent object ... which will move it to index 0.

+1


source







All Articles