<![CDATA[ Help reloading a Manager Page in OnDocFormSave using PHP - My Forums]]> https://forums.modx.com/thread/?thread=102248 <![CDATA[Help reloading a Manager Page in OnDocFormSave using PHP]]> https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-550996
I know how to do it in JavaScript, but in this use-case, I need to do it with PHP.

The problem seems to be that the action goes to the connector, rather than straight to the browser. I've tried stuff that works in JS (e.g., sending ?a=resource/update&id=12), but it doesn't work.

Has anyone figured out a way?]]>
BobRay May 20, 2017, 05:24 PM https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-550996
<![CDATA[Re: Help reloading a Manager Page in OnDocFormSave using PHP]]> https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561124 BobRay Aug 26, 2018, 07:54 PM https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561124 <![CDATA[Re: Help reloading a Manager Page in OnDocFormSave using PHP]]> https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561122 But I've a question to this part:

Important: it must be below that code that sets the two TV values and the current resource ID.
On new created resources, the current resource ID is not set. Is there a way to get this ID
in the OnBeforeDocFormSave event? At the moment
$resource->get('id')
is checked and
if it's not integer or > 0, the further processing which needs the ID is stopped.

Thanks again
Martin]]>
spechto Aug 26, 2018, 07:41 PM https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561122
<![CDATA[Re: Help reloading a Manager Page in OnDocFormSave using PHP]]> https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561101
https://bobsguides.com/blog.html/2017/08/30/updating-manager-pages-in-a-plugin-viii/

You may have to modify it to meet your needs.]]>
BobRay Aug 26, 2018, 03:05 AM https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561101
<![CDATA[Re: Help reloading a Manager Page in OnDocFormSave using PHP]]> https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561097
did you find a solution for this problem?
I am changing the content in the OnDocFormSave event and need to reload
the page to view the changes in the TinyMCE RTE.
A funny thing is, that this works automatically with new resources, so
the reload functionality seems to be included in Revo (Version 2.6.5),
but I don't know how to activate it with existing resources which only
should be updated ..

Thanks
Martin]]>
spechto Aug 25, 2018, 12:53 PM https://forums.modx.com/thread/102248/help-reloading-a-manager-page-in-ondocformsave-using-php#dis-post-561097