Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Remove Actions in my DOM

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 876 Views
  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Remove Actions in my DOM Link to this post

    Hi guys...

    How i' remove actions in my dom... if i'm used this function

    updateCMSActions(), getCMSActions()

    function getCMSActions(){

    $actions = parent::getCMSActions();

    $Action = new FormAction(
    "doAction",
    "Do something different"
    );
    $actions->push($Action);

    return $actions;

    i' have problems,

    the process is the same for getcmfields?
    example removebyname('deleteaction');

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Remove Actions in my DOM Link to this post

    Hi, FYI the DOM is NOT the CMS, it's the DOM, so please post your question in the DOM part of the forum

  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Re: Remove Actions in my DOM Link to this post

    sorry i think i'am wrong i want do this in my page...

    http://www.ssbits.com/tutorials/2009/adding-a-cms-action-the-slightly-hacky-way/

    But i'am want hide actions...
    No I' cant do this work... give-me errors...

    sorry my English...

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Remove Actions in my DOM Link to this post

    I understand - are you using ModelAdmin or DOM or something else...

  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Re: Remove Actions in my DOM Link to this post

    I' using DOM ... -> ok... sorry a put my question in other place... ...

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Remove Actions in my DOM Link to this post

    no need to apolosise - I always say this just to get your question answered - I rarely see the great UncleCheese in threads outside his section - I'm not saying he doesn't, but it's probably best to focus things there

    876 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.