|
|
I am using the control to creat custom tabs and groups on my master page. It works great. But if I have feature project that will deploy/add a button to the custom tabs , how do I do that ?
|
|
Coordinator
May 10, 2012 at 12:47 PM
|
You can deploy a control globally by using Delegate Control technique. I have a blog post about this:
Also, please consider using
RibbonCustomAction class.
|
|
|
|
I am deploying it using a delegate control on the master page. That's works great but I have another project need to a button to the tabs that were created by the delegate control
On Thursday, May 10, 2012, omlin wrote:
From: omlin
You can deploy a control globally by using Delegate Control technique. I have a blog post about this:
Also, please consider using
RibbonCustomAction class.
|
|
Coordinator
May 10, 2012 at 1:05 PM
Edited May 10, 2012 at 1:06 PM
|
got it!
So you have two projects:
- First has delegate control which deploys a ribbon tab.
- Second should add a button to the existing tab, which was created by the first project
You can achieve this by using some plugin technique. For example, you can serialize all the buttons in the tab and store them somewhere, say in SPWeb.Properties. Then, your second project could fetch the serialized data, deserialize, add
it's button to the collection, serialize and put it back so the first project will render the updated collection of buttons, including the button from the second project.
|
|
|
|
Yea that's what was thinking .. thanks !
On Thursday, May 10, 2012, omlin wrote:
From: omlin
got it!
So you have two projects:
- First has delegate control which deploys a ribbon tab.
- Second should add a button to the existing tab, which were created by the first project
You can achieve this by using some plugin technique. For example, you can serialize all the buttons in the tab and store them somewhere, say in SPWeb.Properties. Then, your second project could fetch the serialized data, deserialize, add it's button to the
collection, serialize and put it back so the project delegate control will render updated collection of buttons.
|
|
|
|
Could you please provide a code sample for Adding to existing group/tab
?
|
|
Coordinator
Feb 6 at 8:48 PM
|
|
|