Help - Search - Members - Calendar
Full Version: Redirect After Post New Comment
Movable Type Community Forum > Additional Resources > Tips and Tricks
rapwayne
I'm using Ver 2.661 and I know's it not really supported or in as much use these days, but hey, it's free! At any rate, when a user posts a new comment from an individual entry page, I want to go my main index (index.asp) instead of the individiual comment file (e.g. index.asp instead of 00123.html) and to pass a parameter to it (in this case "Entry=", e.g. "index.asp?Entry=00123".

Because my index page is an ASP file, I use it as a container to display everything. I pass a value to it indicating whether it should display a monthly page, individual page, date page, etc. As a container, it works, in effect as a universal template for all of the entries.

As a result, my archives (ie. templates) for things like individual entries really only contain the body of the web page, without the head or other entries that are required for the full browser page.

Is there a simple way to cause MT to go to my index page and to pass a parameter to it, instead of going to the individual entry page?

ALTERNATIVELY, I can use a redirect code to detect whether the referrer page is my index page and if it's not then redirect the browser to my index page and use a session variable to keep track of the individual archive entry number. I've tried this, but the vbscript code doesn't execute.

I've used the browser "view source" to get the source code for the displayed page and then pasted that into a new document and then loaded it from the web server and the redirect works, but it doesn't work when the pages launches from the MT PERL code.

I'm guessing this is because the PERL code operates differently when assembling the individual page to display, but I'm not sure.

Any ideas for either one of these approaches?

Thanks in advance for any help.
maddy
See this thread smile.gif
rapwayne
Thanks. This was exactly what I needed.
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.