Ribbon Customization on Document Set Manage tab not working


hello,

i developing sharepoint 2013 site migration of 2010 site. mean i'm rewriting scratch use sharepoint apps in 2013. 

i have app shows custom ribbon buttons on document set home page. buttons appear should , work fine until modify document set home page. modification involves removing "document set contents" web part , replacing "list view" web part (there reasons not germane discussion). 

anyway, once web parts changed, custom ribbon buttons appear on manage tab, grayed out, can never clicked. 

below "elements.xml" showing customization. appreciated. 

by way, worked fine in sharepoint 2010. document set home page set in same manner. undoubtedly new app model has changed something, can't figure out what. 

thanks

doug h.

--------------------------------------------------------------------------

elements.xml:

<?xml version="1.0" encoding="utf-8"?>
<elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <customaction id="thesite.sharepoint.ribbon.customtab"
                  sequence="100"
                  registrationtype="list"
                  registrationid="{$listid:base%20files;}"
                  location="commandui.ribbon">
  
        <commanduidefinition location="ribbon.managedocumentset.mds.manage.controls._children">
          <button id="ribbon.documents.manage.ribboncustomizationsbutton.subscribe"
                          sequence="100"
                          command="mysite.command.subscribe"
                          labeltext="subscribe"
                          templatealias="o1"
                          tooltiptitle="subscribe document set"
                          tooltipdescription="add document set home page"
                          image32by32="_layouts/15/images/ctoa32.png"
                          image16by16="_layouts/15/images/ctoa16.png" />
        </commanduidefinition>
        <commanduidefinition location="ribbon.managedocumentset.mds.manage.controls._children">
          <button id="ribbon.documents.manage.ribboncustomizationsbutton.unsubscribe"
                  alt="unsubscribe"
                  sequence="100"
                  command="mysite.command.unsubscribe"
                  labeltext="unsubscribe"
                  templatealias="o1"
                  tooltiptitle="unsubscribe document set"
                  tooltipdescription="remove document set home page"
                  image32by32="_layouts/15/images/ctor32.png"
                  image16by16="_layouts/15/images/ctor16.png" />-->
        </commanduidefinition>
        </commanduidefinitions>
      <commanduihandlers>

        <commanduihandler 
          command="mysite.command.subscribe"
          enabledscript="true"
          commandaction="~appweburl/pages/subscribedialog.aspx?source={source}&amp;{standardtokens}" />
        <commanduihandler 
          command="mysite.command.unsubscribe"
          enabledscript="true"
          commandaction="~appweburl/pages/unsubscribedialog.aspx?source={source}&amp;{standardtokens}" />
       
      </commanduihandlers>
    </commanduiextension >
  </customaction>
</elements>


doug haining


i may have answered own question. found, in 15 hive (c:\program files\common files\microsoft shared\web server extensions\15) following folder; template\features\documentset. inside folder "ribbon.xml" has document set ribbon locations. 

doug h


doug haining



SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'