How do I set the ribbon to default Browse mode instead of default to Edit mode?
It is annoying to see the item details in view mode all the time and then click Browse to remove it...
How do I set the ribbon to default Browse mode instead of default to Edit mode?
It is annoying to see the item details in view mode all the time and then click Browse to remove it...
Infact, I was also actually facing the same issue. So, I dig up the source of the page and found the interesting stuff in init.js (Sharepoint provided script file) script.
There is a parameter called InitialTabId set to different default values according to different pages.
Thats why you see different modes on different pages where on one page either browse tab is enable while on other edit or page tab is enabled.
One needs to set this parameter's (InitialTabId) value according to one's need.
For example, if you want to set Page tab as default value, set InitialTabId = Ribbon.WebPartPage
If you want to know what are the ID’s of the default tabs that comes with SharePoint, Take a look at “14\TEMPLATE\GLOBAL\XML\CMDUI.xml” in your “14 Hive”.
Inorder to have browse tab as your default tab, Set InitialTabId = Ribbon.Read in your QueryString
NJoy--
Take a look at the solution here. At the end of the function, there is this line:
_ribbonStartInit("Ribbon.Browse", true)
That will set that tab as default. You can change it to whatever you like.