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

I've created a simple SharePoint ribbon tab with a button on it; the button XML looks like this:

              <Button
                Id="Ribbon.MyTab.MainGroup.HelloButton"
                Command="MyTab.HelloCommand"
                Description="Says Hello"
                LabelText="Hello"
                Image32by32="/_layouts/MyCustomSPTab/icon3232.png"
                TemplateAlias="cust4" />

I know the compiler complains about deploying images to the sandbox.

Is it possible to add an image to a ribbon button in a sandboxed solution? And if so, how?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

MSDN says:

Please note that CustomActionGroups cannot be added through a Sandboxed feature in SharePoint 2010. This requires a farm solution in order to be shown (it doesn't provide an error if it is a sandbox).

CustomActions can be added to existing SharePoint 2010 groups in a sandboxed feature.

Also you should keep in mind that Sandbox solution cannot deploy any files to the file system by security reason (All files are stored in contatnt DB for Sandbox solutions). I think that you can create your Module (in VS2010 you can see this temlate if you click add new item on existed project). Then put your picture to this Module and set reference to this picture in your custom action.

share|improve this answer

If you have SharePoint Designer, you may want to try this - Adding Button to ribbon using SharePoint Designer

Also, have a look at this. Customizing SharePoint Online with SharePoint Designer 2010

share|improve this answer
    
The OP was asking about sandbox solutions, not using SPD. –  Ryan Nov 29 '11 at 8:27

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.