Custom Action to the Ribbon - Not Associated to a specific Content Type?

Is it possible to create a custom action on the ribbon that ISNT associated to a specific content type?
I want to perform an action that isn't related to a list / item / lib - it should be available regardless of the context of the action I'm performing.
I have this :-
<CustomAction
Id="Steve.SharePoint.Ribbon.SSSCTab"
Location="CommandUI.Ribbon"
RegistrationType="ContentType"
RegistrationId="0x01">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Tabs._children">
<Tab Id="Steve.SharePoint.Ribbon.SSSCTab"
Title="Custom Tab"
Description="Groups and controls will go in here"
Sequence="550">
<Scaling Id="Steve.SharePoint.Ribbon.CustomTab.Scaling">
<MaxSize...............
If I remove the RegistrationType and ID, the tab doesn't appear at all.  With it set as above, the tab is available, but the controls are greyed out unless I am working within a list ....
I'd like to have it always enabled if this is possible?
Thanks
Steve

Removing those 2 should do the trick, try the following:
Remove the RegistrationType and RegistrationID. Redeploy, restart your server, and clear your browser cache through F12 Developer Tools.
Dimitri Ayrapetov (MCSE: SharePoint)

Similar Messages

  • I defined custom action but it is not running properly.

    Hi,
    I defined custom action but it is not running properly.
    I deployed in MII (System Management --> Custom Actions)
    When i use it as an action in a transaction error below generated.
    Errors
    [ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action
    [ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action
    Custom action code is below.
    package com.wipro.action;
    import com.sap.xmii.xacute.actions.ActionReflectionBase;
    import com.sap.xmii.xacute.core.ILog;
    import com.sap.xmii.xacute.core.Transaction;
    @author cemil.bozlagan
    public class CustomAction extends ActionReflectionBase {
        private String strFirstInput;
        private String strSecondInput;
        private String strOutString;
        public CustomAction() {
            strFirstInput = "";
            strSecondInput = "";
            strOutString = "";
        @Override
        public String GetIconPath() {
            return "/com/wipro/action/resources/icons/CustomAction.png";
        @Override
        public void Invoke(Transaction trx, ILog ilog) {
            try {
                strOutString = strFirstInput + strSecondInput;
                // This varaible is defined in ActionReflectionBase class
                _success = true;
            } catch (Exception e) {
                _success = false;
        public String getFirstInput() {
            return strFirstInput;
        public void setFirstInput(String strFirstInput) {
            this.strFirstInput = strFirstInput;
        public String getSecondInput() {
            return strSecondInput;
        public void setSecondInput(String strSecondInput) {
            this.strSecondInput = strSecondInput;
        public String getOutString() {
            return strOutString;
        @Override
        public boolean isConfigurable() {
            return false;
    How can i solve this problem?
    Thanks.

    Hi Cemil,
    Pls check document, I hv sent to your mail.
    May be it helps.
    Regards
    Padma

  • How to add custom actions to the Settings page for a Document Library?

    I want to add a custom action under General Settings on the Document Library Settings page (listedit.aspx). So I added a new SharePoint 2010 "Empty Element", and put this code in the Elements.xml file:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="MyClassName"
    Sequence="999"
    GroupId="GeneralSettings"
    Location="Microsoft.SharePoint.ListEdit.DocumentLibrary"
    Title="My Link"
    Description="My description here"
    Rights="ManageWeb">
    <UrlAction
    Url="~sitecollection/_layouts/MyProject/MyPage.aspx"/>
    </CustomAction>
    </Elements>
    I found the GroupId and Location here: http://msdn.microsoft.com/en-us/library/bb802730.aspx but I am starting to wonder if this documentation is for MOSS2007 rather that SP2010
    as it says.
    What am I missing?
    Any help or hint would be greatly appreciated!

    Hi Henrik,
    Can we add above custom action in our custom group like General Settings?
    I have tried for that but it is not working.
    I have tried as follows
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomActionGroup
    Id="LibrarySettings.MyGroup"
    Title ="My Group"
    Sequence="1000"
    Location="Microsoft.SharePoint.ListEdit">
    </CustomActionGroup>
    <CustomAction Id="Custom.Configuration.ListCustomSettings"
    GroupId="LibrarySettings.MyGroup"
    Location="Microsoft.SharePoint.ListEdit"
    RequireSiteAdministrator="FALSE"
    Sequence="100"
    Title="Library Admins">
    <UrlAction Url="_layouts/15/LibrarySettings.aspx?List={ListId}" />
    </CustomAction>
    </Elements>
    But custom group is not created in list settings
    Any idea what I am missing here?

  • Add ecb custom action to the callout (item menu)

    Is it possible to change the order of buttons in the callouts (see image below)? I would like to insert "Download a copy" after the "Open" hyperlink. Anyone has got any ideas?

    Check if below can help:
    http://stackoverflow.com/questions/23386514/sharepoint-ecb-custom-action-does-not-show-up-for-the-document-libraries-deploye
    n order for custom action to appear in your custom list definition you need to change
    RegistrationId property to the value of Type property of your list definition. In your case it should be
    RegistrationId=10000
    If you want to attach your custom action to all document libraries you can try to attach it to Document content type:
    SPUserCustomAction action1 = web.UserCustomActions.Add();
    action1.RegistrationType = SPUserCustomActionRegistrationType.ContentType;
    action1.ImageUrl = "~sitecollection/myresources/Images/Logo16x16.png";
    action1.RegistrationId = "0x0101";
    action1.Location = "EditControlBlock";
    action1.Sequence = 500;
    action1.Title = "Redirect to my page";
    action1.Url = "javascript:__doPostBack('RedirectPostBack','{ItemId}|{ListId}');";
    action1.Update();
    http://social.msdn.microsoft.com/Forums/office/en-US/40076dc2-8be6-4019-bf1e-54067880e8a8/how-to-add-a-new-customaction-in-ecb-for-a-specific-list?forum=sharepointdevelopmentlegacy
    If this helped you resolve your issue, please mark it Answered

  • Error when associating workflow with Task Content Type

    Using SharePoint Designer 2010, I have created a simple workflow that sends an email out when a tasks due date has past.  I created this as a Global Workflow and then tried to "Associated to Content Type", selecting "Task".  I am then taken
    to... COMPANY PORTAL--> Site Settings--> Site Content Types--> Task--> Add a Workflow. When I try to associate the new "Global" workflow and select OK I get the following error...
    Error
    Workflows may not be associated with content types whose base is on 'WorkflowTask'.
    I have looked up the error but find no real explination of what it means.  And I have associated global workflows with custom content types and never had this issue. 
    So what's going on?
    Thanks
    Steve
    Thanks in advance for your time. Steven

    Hi ,
    I understand that when you bind the workflow to Tasks content type, there is an error. I can reproduce this error. This is because we cannot add a reusable workflow to a workflow tasks content type. When you add the reusable workflow to the Tasks content
    type, you must have checked the ‘Add this workflow to all content types that inherit from this content type’. In this way, the workflow will be added to all the Tasks content type and workflowtasks content type. There will an error. After you close the error
    message, the workflow is added to the Tasks content type.
    The workaround is the check No to ‘Add this workflow to all content types that inherit from this content type’.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Field values are not erased when I change content types.

    On an SP2010 site I created 2 Site Columns  TextColumn1 and  TextColumn2 (both Single Line of text).
    I added Two Content Types ContentType1 and ContentType2 (both derived from Item).
    I created a list and enabled content types. I Added ContentType1 and ContentType2 to the list.
    I configured the devfault view to show TextColumn1 and  TextColumn2.
    I added an Item of ContentType1 and for TextColumn1  added the value 'c1'
    I edited the item and changed the content Type to ContentType2 and entered a value of c2 for TextColumn2.
    The default view still shows the value of 'c1' for TextColumn1 even though the item is of content type ContentType2 which does not have this field defined.
    How do I correct this?

    If I'm understanding your question correctly, this is expected behavior. The item still has both the content types applied to it. The columns are included in the view. So Any values in those columns for that item will be displayed.
    You could create views for each content type.
    You could also look into changing the default content type.
    Not sure if this helps because I'm not sure I understood the problem.

  • Get items between in the publishingstartdate and publishingend date in a content type.

    Hi,
    I have a content type that has  two site columns publishingStartdate and publishing end date.
    The content type is added to a document library.
    When I create an item of the content type then it  gives two options for publishing start date as immediately and then a date fiel.d
    For publishing end date as never and a date control.
    Now I want to be able to get only the results which are published as in  todays date is in between  publishing start date and end date.
    But  it seems publihsingstart date and publishingend date fields are text type hence I cannot run CAML Query with Greater than  and less than.
    Is there a way to get the items and run the caml quey 

    Hey Dennis,
    Thanks for the reply.
    But I am facing a strange issue. That is I also want to be able to get only those items contain certain keyword in the title column.
    I am using the following query, But it is not giving the right results. Here is the query 
    <Where>
                          <And>
                                                     <Or>
                                                        <And>
                                                          <Or>
                                                              <And>
                                                                 <BeginsWith>
                                                                    <FieldRef Name='ContentTypeId'
    />
                                                                    <Value Type='ContentTypeId'>{0}</Value>
                                                                 </BeginsWith>
                                                                 <IsNull>
                                                                    <FieldRef Name='PublishingStartDate'
    />
                                                                 </IsNull>
                                                              </And>
                                                              <Leq>
                                                                 <FieldRef Name='PublishingStartDate' />
                                                                 <Value Type='DateTime'>
                                                                    <Today />
                                                                 </Value>
                                                              </Leq>
                                                           </Or>
                                                           <IsNull>
                                                              <FieldRef Name='PublishingEndDate' />
                                                           </IsNull>
                                                        </And>
                                                        <Geq>
                                                           <FieldRef Name='PublishingEndDate' />
                                                           <Value Type='DateTime'>
                                                              <Today />
                                                           </Value>
                                                        </Geq>
                                                     </Or>
                          <Contains>
                          <FieldRef Name='Title' />
                       <Value Type='Text'>{1}</Value>
                        </Contains>
                        </And>
                                                    </Where><OrderBy><FieldRef Name='PostedDate' Ascending='False' /></OrderBy>
    But it is giving me incorrect results.
    Should I be using joins in SPQuery.

  • Can the CSOM appy Information Management Policies to Content Types?

    I'm looking to use client side code to manage the Information Management Policies of Content Types. Can this be done?
    Add a policy to a content type.
    Copy a policy from one content type to another.
    Copy a source policy to update a destination content type and then those changes propogate to the lists/libraries where they are used.
    Thanks,
    Doug

    Hi Doug,
    Per my knowledge, we can only use Powershell and server side object model to achieve it.
    Here is a simialr thread for you to take a look at:
    https://social.msdn.microsoft.com/Forums/en-US/ce04e573-24ab-4a94-ad4e-c9cecb2fc050/can-we-apply-information-management-policy-by-client-object-model-on-sharepoint-2013-online-document?forum=sharepointdevelopment
    As a workaround, we can create a web service and use Server Object Model to achieve it.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Is it possible to set the firefox back button to a custom action in the context of a websocket connexion?

    Simply, is it possible to set the firefox back and forward button to custom javascript function to navigate in a websocket application.
    Thanks in advance

    You may get lucky, especially as Today is a "Sumo Day" with more contributors around than usual. Such a question tends to be slightly off topic, being a hack of a standard Firefox installation.
    What I would suggest is that you try other forums, either a specialist linux forum or the popular Mozillazine forums: http://forums.mozillazine.org/index.php

  • Dynamics crm 2015 import fail entity ribbon XML data that represents the customized elements of the ribbon for an enitity" error.

    while import the solution into dynamics crm 2015.import fail is getting.could anybody help me on this.
    hsk srinivas

    Hello,
    I believe first step is to Download Log File and recheck it for error.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Set a custom path for the service endpoint associated to a BPEL process

    Hello,
    I have a BPEL process and I would like to change the endpoint address of the corresponding web service that corresponds to the BPEL process.
    To be more specific, by default, the web service corresponding to a BPEL process "MyProcess" has an endpoint like: http://MyMachine:9700/orabpel/default/MyProcess , supposing that the process is deployed in the default domain.
    What should I do to have an endpoint like
    http://MyMachine:9700/orabpel/default/MyPath/MyProcess ?
    Is it possible?
    Thanks in advance!
    Regards,
    Marinel

    Figured out that the configuration property 'location' for the PartnerLinkBinding Deployment Descriptor can be used for this purpose. Tried it and it is working out perfectly fine.
    Thanks,
    Vijay.

  • When I try to change the default program for opening a specific file type The "Always use the selected program to open this type of file" does not highlight.

    I can not therefore change the default program. How can I get this to highlight?

    Hi Swansong,
    It is also possible to [[Set how Firefox handles different types of files]]

  • Can I create a list which counts the number of documents of a specific metadata type by the folder they are stored within?

    Running SP2013 Foundation. My users interact by uploading documents to personal folders within a document library, selecting the type of document they have uploaded via a lookup column and SP list. I have two levels of view in my library, a top level view
    and an in-folder view which contains the metadata and standard document information like version and modified date etc.
    Currently I am able to count the total number of documents that have been uploaded of a particular document type against my document type list, but I would also like to include folder along with document type to thoroughly track document returns by folder
    name. The desired output being a list with a count of document type uploaded by folder name.
    I have tried creating an associated user column at the top level view and also uploading an associated user and folder name list.
    Is this possible and how would I go about this?
    Many thanks for any assistance

    Hello MJH9J,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Best Regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Cannot change the default program to open a specific file type.

    Whenever I attempt to change the default program to open a file, it automatically reverts to whatever was selected previously.
    I work with a lot of .ai files and my default Illustrator version is set to Creative Cloud. CC crashes constatnly on my machine, however CS6 runs smooth as silk. I'd like to be able to double click an .ai file and have it open in CS6, not CC. When I right click > Get Info > Open with and change it, it reverts as soon as I click "Change all..."
    This isn't a huge deal... only takes a few seconds out of my day but it isn't something I should have to worry about.
    Any suggestions?
    Thanks in advance.

    I just successfully changed on my .docx to open into Pages. I went the same route that you mentioned... Right click---> Get Info---> Open With and changed it to Pages. When I clicked Change All, a dialog came up asking me if I am sure that I want to change all of my .docx to open in Pages. I click accept and tested it. Now my .docx open in Pages.
    So my question is, is your issue just applying to .ai files? Or is affecting other files, such as .docx? If it's just affecting .ai files, then there maybe an underlying reason for that. And it may not be able to be changed.
    Just a thought.
    KOT

  • Get the site columns for a given content type c#

    Hello,
    i want to find the site  columns associated with a particular content type in SP2010 using c#.Can anyone pls help me out??

    using (SPSite site = new SPSite("http://asdasd/sites/asdasd"))
    using (SPWeb web = site.OpenWeb())
    SPContentType ct = web.ContentTypes["Document"];
    foreach (SPField item in ct.Fields)
    Console.WriteLine(item.StaticName);
    Console.ReadLine();
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

Maybe you are looking for

  • Error in Sender JDBC communication channel

    Dear All, We have an interface in which we are fetching data from SQL database through sender JDBC communication channel. Last week SQL server was upgraded from 2000 to 2008 and the communication channel has stopped working and is giving the followin

  • Can i use the iphone sim card in the new IPhone 3g and not have to renew?

    I have an Iphone now and want to get the new Iphone 3g. Can i still use my old sim card and old contract with the new phone and not have to start a new contract with at&t and pay again?

  • Parsing xml with multiref

    Hi, We received from web service a xml: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:aaaa soapenv:e

  • Can I still export TGA from Quicktime 10?

    Hi, In Quicktime Pro (7) I used to be able to export movie files as TGA sequences. I now have Quicktime 10, is that feature still available or does anyone know a good work around so I can save my movie as a TGA sequence? Thanks

  • G4MX460-VTP + Windows Media 9 Series Encoder

    Has anyone been able to have their geforce4 based cards with ViVO capabilities to encode live video with Windows Media 9 Series Encoder?  ?(