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 have the following code, the button is shown but the dropdownlist is not visible. I think the problem is with templatealias, but I dont understand very well how this thing works

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I've tested your XML - you've used the group size "LargeLarge" from the Flexible2 template that dropdown isn't capable to support:

Microsoft JScript runtime error: The display mode with name: Large is not valid for this control with id: SP.WikiActions.FolderDropdown

I've changed the MaxSize to MediumMedium (if you check the Flexible2 template in CMDUI.xml - it contains three rows of the small controls) and all have rendered correctly:

<MaxSize Id="SP.WikiActions.MaxSize"
                   Sequence="11"
                   GroupId="SP.WikiActions"
                   Size="MediumMedium" />

So you need to use as the scaling to your dropdown group any scaling that contains modes supported by dropdown.

BTW here's a recomendation for using templates in your custom groups:

When defining custom groups in ribbon customization Features, Microsoft recommends that developers create their own group template instead of using one of the provided group templates. The reason for this is that SharePoint does not load the entire ribbon for every page request; only the parts of the ribbon that are needed for the current context are loaded. This includes the group templates. Therefore, if developers rely on the built-in group templates, there is a chance the template will not be loaded for the current page and their ribbon customizations will not appear.

UPDATE: Here's the walkthrough that includes a group template creation. I'm planning to cover this things in deep details myself but need some time to do it. :)

share|improve this answer
    
I agree with that, I had already read that, but I cant find any good documentation in how to create group templates, it looks complicated, any link you can share about this special topic. –  L.V. Sharepoint Architect Mar 5 '12 at 12:13
    
See the update. And the main point of my answer was a resolution of the problem described - does it helps you? :) –  Alex Boev Mar 5 '12 at 12:20
    
I've added what you need to modify. –  Alex Boev Mar 5 '12 at 12:26
    
thanks for your help, it looks you have a lot of experience in this topic, could you please read this one also? sharepoint.stackexchange.com/questions/30813/… –  L.V. Sharepoint Architect Mar 5 '12 at 12:45

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.