On save....

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 23, 2009   (RSS)

Re: [Toledoh] On save....

By Dave - March 23, 2009

Hi Tim,

We can't promise much for tips on modifying the internal code but I'll give it a shot.

In /lib/menus/default/save.php search for "redisplay list page" You're going to want to add your code ABOVE these lines:

### redisplay list page
exit; // print nothing to redisplay list page (done in edit_functions.js by ajax form submit code)


We have a function called getPage you can use to download a web page, you use it like this:

list($html, $httpStatusCode) = getPage("http://www.interactivetools.com/includes/header.html");

Try adding something like this above exit:

list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=1");
list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=2");
list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=3");
list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=4");
list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=5");
list($html, $httpStatusCode) = getPage("http://www.yourDomain.com/rss.xml.php?field=6");

### redisplay list page
exit; // print nothing to redisplay list page (done in edit_functions.js by ajax form submit code)


Hope that helps! Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] On save....

By Toledoh - March 23, 2009

That's what I like about you guys - helpfull, knowledgable and quick to repond.

All working a treat!

Thank You!
Cheers,

Tim (toledoh.com.au)