Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » FormAction in CMS

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

Page: 1 2 3
Go to End
Author Topic: 6310 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Re: FormAction in CMS Link to this post

    Have a look at LeftAndMain::ForceReload, I think this is what you want - i.e refreshing the page in the cms.

    LeftAndMain::ForceReload();

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: FormAction in CMS Link to this post

    Hey Dio, thanks for the reply. I can't get it to respond to that call. I'm putting it in the iframe controller, just before the Director::redirect, is that the correct place?

  • fridolin24
    Avatar
    Community Member
    5 Posts

    Re: FormAction in CMS Link to this post

    Hallo aram,

    "This does refresh the page.........over and over and over infinately Unfortunatly because the form is in an Iframe when you refresh the page like this is also refreshes the iframe which then refreshes the page and so on. unless I missed some code in there?"

    I have seen this Problem now. It's only with Firefox 3. I have solved it with:

    function refresh() {
    top.location.href="/cms/admin";
    }

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: FormAction in CMS Link to this post

    Hi Fridolin

    I still seem to get an infinite refresh in both IE7 and FF3.....it seems like that approach hast to be impossible unless you can set some sort of "if alredy reloaded dont reload agaon" type clause.

  • Capt. Morgan
    Avatar
    Community Member
    30 Posts

    Re: FormAction in CMS Link to this post

    EDIT: sry, posted the wrong thread

    6310 Views
Page: 1 2 3
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.