Jump to:

5520 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » how to force the reload of the cms admin panel?

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

Page: 1
Go to End
Author Topic: 1386 Views
  • mattconfusion
    Avatar
    Community Member
    48 Posts

    how to force the reload of the cms admin panel? Link to this post

    How to reload the damin panel forcing it with a function? I know there is LeftAndMain::ForceReload(); , but i don't know where to put it. I need to refresh the admin panel after a getCMSAction is done... somthing like this does not work:

    function getCMSActions(){

    $actions = parent::getCMSActions();

    $action_1 = new FormAction(
    "doaction1",
    "Perform action1"
    );
    $actions->push($action_1);
       
        $action_2 = new FormAction(
    "doaction2",
    "Perform action2"
    );
    $actions->push($action_2);
       
       
       
    LeftAndMain::ForceReload();
    return $actions;
    }

    where do i put it?

  • guywatson
    Avatar
    Community Member
    15 Posts

    Re: how to force the reload of the cms admin panel? Link to this post

    Hi

    I also have this problem, did you find a solution, or does anyone else know how?

    Thanks

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