Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Remove Actions in my DOM


Go to End


6 Posts   1384 Views

Avatar
Dr0gaz

Community Member, 37 Posts

5 April 2011 at 10:53pm

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');

Avatar
swaiba

Forum Moderator, 1899 Posts

6 April 2011 at 8:03am

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

Avatar
Dr0gaz

Community Member, 37 Posts

6 April 2011 at 10:53pm

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...

Avatar
swaiba

Forum Moderator, 1899 Posts

6 April 2011 at 10:56pm

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

Avatar
Dr0gaz

Community Member, 37 Posts

7 April 2011 at 2:30am

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

Avatar
swaiba

Forum Moderator, 1899 Posts

7 April 2011 at 11:01am

Edited: 07/04/2011 11:02am

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 :)