Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Ok - So I have a shared documents library - and like many posts before me I would like to make the default tab on the ribbon a custom tab that I have made. Can someone tell me how to edit the URL using code without having to manually type in the url aspx?InitialRibbonID=Ribbon.CustomTabExample...... PLEASE

share|improve this question
add comment

1 Answer 1

Try manipulating the InitialTabId of the SPRibbon object. Set the attribute value to the id to your tab and then it will be selected when the document library loads.

Here is a sample example: http://kmukesh.wordpress.com/2011/05/18/how-to-create-custom-site-ribbon-tab-with-buttons/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.