Topic
  • 4 replies
  • Latest Post - ‏2013-07-09T04:20:19Z by XB3V_Keshav_Chauhan
XB3V_Keshav_Chauhan
XB3V_Keshav_Chauhan
31 Posts

Pinned topic FolderContextMenu in Plugin

‏2013-06-20T12:16:32Z |

Greetings,

I have developed an action for FolderContextMenu,Can i restrict this action to be available only on a specific folder

 

Thanks & Regards,

Lakshya Agarwal

  • damorris
    damorris
    825 Posts

    Re: FolderContextMenu in Plugin

    ‏2013-06-21T02:54:03Z  

    Yes

  • XB3V_Keshav_Chauhan
    XB3V_Keshav_Chauhan
    31 Posts

    Re: FolderContextMenu in Plugin

    ‏2013-06-21T07:13:03Z  
    • damorris
    • ‏2013-06-21T02:54:03Z

    Yes

    Thanks for reply damorris,

    How to restrict it??

  • BJOwings
    BJOwings
    185 Posts

    Re: FolderContextMenu in Plugin

    ‏2013-07-08T20:32:17Z  

    Thanks for reply damorris,

    How to restrict it??

    Take a look at the sample plugin's CustomAction.  Your custom action should be extending ecm.model.Action.  Then, you can override isEnabled to enable the action for only certain folders.

  • XB3V_Keshav_Chauhan
    XB3V_Keshav_Chauhan
    31 Posts

    Re: FolderContextMenu in Plugin

    ‏2013-07-09T04:20:19Z  
    • BJOwings
    • ‏2013-07-08T20:32:17Z

    Take a look at the sample plugin's CustomAction.  Your custom action should be extending ecm.model.Action.  Then, you can override isEnabled to enable the action for only certain folders.

    Thanks BJOwings,

    By overriding isEnabled worked.