Following the suggestions received here we integrated the wiki into a custom package that we are working on so that blocks of text can be edited using xowiki (using adp includes).
Here is what we are trying to achieve:
1. Add edit buttons to the adp page that has the wiki includes that goes to the edit page. Ideally the edit page would show up in the URL space of the package itself and not within the xowiki url space (We have already achieved this following Gustaf's suggestion except for the URL space).
2. Pass a return URL to the xowiki edit page that we can use to bring us back to the page we were on before the edit.
For #2 Ham suggested we changed edit.tcl to add that param and modify the form when it is created like this:
set form_class [$object_type getFormClass]
$form_class create ::xowiki::f1 -volatile \
-data $page \
-folderspec $folderspec \
-submit_link $return_url
Unfortunately, it is not working. Even if we change the submit_link original definition in xowiki-form-procs.tcl, it always goes back to "view" after we edit.
Something is instructing it to do that and although it is probably obvious, we don't find it. Can any one help?
(commenting out line 160 didn't affect the behaviour, since we are dealing with plain pages)