cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Button

sunny86
Champ in-the-making
Champ in-the-making
I want to add a button in addcontent dialog, other than OK and Cancel.
Also is it possible that it should appear for a particular space.
I am not getting how should i proceed.
can any one please help me.


Thanks
Sunny
2 REPLIES 2

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
you can do that really easy, but you need some java coding for this.

special spaces: well this is a problem you need to extend alfresco model in order to define that "special" space.

 @Override
    public List<DialogButtonConfig> getAdditionalButtons() {
   List<DialogButtonConfig> buttons = null;

   buttons = new ArrayList<DialogButtonConfig>(1);

   buttons.add(new DialogButtonConfig("finish-button",
      "#{DialogManager.finishButtonLabel}", null,
      "#{DialogManager.finish}",
      "#{DialogManager.finishButtonDisabled}", null));

   return buttons;
    }


of course this is finish-button so you need to make some changes to fit your needs, but you get it Smiley Happy

sunny86
Champ in-the-making
Champ in-the-making
Thanks a lot Smiley Happy