Help - Search - Members - Calendar
Full Version: Redirect after new entry?
Movable Type Community Forum > Additional Resources > Tips and Tricks
bobman
Has anyone had experience telling mt.cgi to, after posting a new entry, redirect to something other than the "Your entry has been saved. You can now ... " page?

I'm using a custom page to add entries, but it always redirects to the MT edit entry page after submitting, when I'd like it to simply go to the main page of my site.

CODE
<input type="hidden" redirect="news.html">
doesn't work, nor does the comment script
CODE
<input type="hidden" static="1">


You can see what I have so far here: Custom Entry page

Thanks!
markpasc
I'm pretty sure you'd have to edit the underlying Perl code to change the page it goes to when you submit a new entry. MT isn't designed to let you post from an outside form like that.
bobman
Ok, thanks, that's what I expected ... but since I'm really pushing the MT fields to their limits (i.e. inputting dates as "keywords", names as "extended entries"), I need to have a custom web interface for it.

Anyone have luck calling mt-xmlrpc.cgi from a web form? I've tried but it doesn't seem to like getting input from a form (needs "type=text/xml").
markpasc
Yeah, posting a web form to mt-xmlrpc.cgi won't work. Writing a custom script from scratch using MT's Perl API would be simplest, but that's still a bit of work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.