Forum OpenACS Q&A: Re: returning a different adp template from within an <include>

You'll need to rearrange your Tcl logic.

When the template is compiled it generates one long tcl script with the compiled code for each include in the right place in the script. So if you call ad_script_abort in an include, it stop processing for the entire request.