Forum OpenACS Development: Re: And now, how do we go back to the original page?

Collapse
Posted by Hamilton Chua on
I'm not sure if you got this but I also suggested that you add a return_url to the query section on ad_page_contract at the top of edit.tcl

ad_page_contract {
This is the edit page for notes.

@author Gustaf Neumann (mailto:gustaf.neumann@wu-wien.ac.at)
@creation-date Oct 23, 2005
@cvs-id $Id: edit.tcl,v 1.13 2006/05/19 22:21:30 gustafn Exp $

@param item_id If present, item to be edited
@param name Name of the item
@param object_type the source class providing the data source for filling the form
} -query {
item_id:integer,optional
name:optional
last_page_id:integer,optional
folder_id:integer,optional
{object_type:optional ::xowiki::Page}
page_template:integer,optional
{return_url "view" }
}

By line #60, you should be referring to this line of code

### provide a nice link
my set submit_link [::xowiki::Page pretty_link \
-package_id [$data set parent_id] \
[$data set name]]

Also your edit link should ressemble edit?item_id=0000&return_url=/your_return_url

Also, please remember to go to acs-admin/apm and reload the changes on xowiki. Your changes to the proc will not take effect until you restart the instance or reload the changed tcl files.