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.

Customising the CMS

Remove Actions in my DOM


Reply

6 Posts   890 Views

Avatar
Dr0gaz

5 April 2011 at 10:53pm Community Member, 37 Posts

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

6 April 2011 at 8:03am Forum Moderator, 1796 Posts

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

6 April 2011 at 10:53pm Community Member, 37 Posts

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

6 April 2011 at 10:56pm Forum Moderator, 1796 Posts

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

Avatar
Dr0gaz

7 April 2011 at 2:30am Community Member, 37 Posts

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

Avatar
swaiba

7 April 2011 at 11:01am (Last edited: 7 April 2011 11:02am), Forum Moderator, 1796 Posts

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