Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Reload Sitetree

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

Page: 1
Go to End
Author Topic: 701 Views
  • pelse
    Avatar
    Community Member
    9 Posts

    Reload Sitetree Link to this post

    Hi Folks,

    I have wrote a function thats change the ParentID of a Page.
    After reload the browser the Sitetree in CMS show the changed Page under right Parent Page.
    How can I refresh the CMS Sitetree by Code for example in function onAfterWrite()?

    Thanks a lot.

  • swaiba
    Avatar
    Forum Moderator
    1788 Posts

    Re: Reload Sitetree Link to this post

    probably not the answer you were looking for (as it would reload the entire admin) but possibly add something like...

    Director::redirect(Director::baseURL().'admin/');

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