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 want to import some OOB Buttons to my custom ribbon tab, following this link steps I was able to show exactly the buttons as it should, however, the commands and tooltips are not working and every time I unselected my custom tab the 'imported' buttons simply disappear. There is some extra further steps?

spregards.


Code Blocks:

<MaxSize Id="Ribbon.CustomTab.Share.MaxSize" GroupId="Ribbon.CustomTab.Share" Size="OneLarge" Sequence="6" />
<Scale Id="Ribbon.CustomTab.Share.Scaling.CustomTabScaling" GroupId="Ribbon.CustomTab.Share" Size="OneLarge" Sequence="12"  />

(...)

                            <Group
                                Id="Ribbon.CustomTab.Share"
                                Sequence="30"
                                Command="ShareGroup"
                                Description=""
                                Title="$Resources:core,cui_GrpShare;"
                                Image32by32Popup="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32PopupTop="-128" Image32by32PopupLeft="-64"
                                Template="Ribbon.Templates.OneLargeExample">
                                <Controls Id="Ribbon.CustomTab.Share.Controls">
                                    <Button
                                      Id="Ribbon.CustomTab.Share.EmailPageLink"
                                      Sequence="10"
                                      Command="EmailPageUrl"
                                      Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-16" Image16by16Left="-88"
                                      Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128" Image32by32Left="-448"
                                      LabelText="$Resources:core,cui_ButEmailLink;"
                                      ToolTipTitle="$Resources:core,cui_ButEmailLink;"
                                      ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkPage;"
                                      TemplateAlias="cust1" />
                                </Controls>
                            </Group>

(...)

            <CommandUIDefinition Location="Ribbon.Templates._children">
                <GroupTemplate Id="Ribbon.Templates.OneLargeExample">
                    <Layout Title="OneLarge"
                            LayoutTitle="OneLarge">
                        <Section Alignment="Top"
                                Type="OneRow">
                            <Row>
                                <ControlRef DisplayMode="Large"
                                        TemplateAlias="cust1" />
                            </Row>
                        </Section>
                    </Layout>
                </GroupTemplate>
            </CommandUIDefinition>

Update:

This could be an problem of core.js reference, cause it works when I change the SP installation language.

share|improve this question
    
Most often this is a problem with the XML of the custom action you defined. Can you show us the code you're using? –  Robert Jost Jun 6 '12 at 8:53
    
sure! btw, I'm trimming the original tab of the 'imported' buttons –  fallout Jun 6 '12 at 8:59
add comment

1 Answer

up vote 0 down vote accepted

The issue was caused some cache or misguided reference to the core.js

here some links that could be helpful:

link1 link2

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.