Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -N -r1.7 -r1.8 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 27 Jan 2006 17:34:59 -0000 1.7 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 28 Jan 2006 01:31:25 -0000 1.8 @@ -219,7 +219,12 @@ WikiForm instproc new_data {} { my handle_enhanced_text_from_form set item_id [next] - my update_references + if {![my istype PageInstanceForm]} { + ### danger: update references does an ad_eval, which breaks the [template::adp_level] + ### ad_form! don't do it here. + my update_references + } + return $item_id } @@ -247,6 +252,7 @@ {label "Page Template"} {options \[xowiki::page_templates\]}} } + {with_categories false} } PageInstanceForm instproc set_submit_link_edit {} { my instvar folder_id data @@ -411,6 +417,10 @@ return "
" } elseif {$arg eq "right-col"} { return "
" + } elseif {$arg eq "left-col30"} { + return "
" + } elseif {$arg eq "right-col70"} { + return "
" } elseif {$arg eq "box"} { return "
" } elseif {$arg eq ""} { @@ -594,7 +604,13 @@ #my log "-- fetching page_template = $page_template" ::Generic::CrItem instantiate -item_id $page_template $page_template volatile - return [my substitute_markup [my adp_subst [$page_template set text]]] + #return [my substitute_markup [my adp_subst [$page_template set text]]] + if {[my set instance_attributes] eq ""} { + return [my adp_subst [$page_template set text]] + } + set T [my adp_subst [$page_template set text]] + #my log T=$T + return [my substitute_markup $T] } PageInstance instproc adp_subst {content} { # add extra variables as instance variables Index: openacs-4/packages/xowiki/www/view.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/Attic/view.adp,v diff -u -N -r1.3 -r1.4 --- openacs-4/packages/xowiki/www/view.adp 24 Jan 2006 13:20:58 -0000 1.3 +++ openacs-4/packages/xowiki/www/view.adp 28 Jan 2006 01:31:26 -0000 1.4 @@ -68,6 +68,8 @@ img.undefined {border: 10; color: yellow; height: 12px} #left-col {float: left; width: 40%; relative: absolute; top: 0px;} #right-col {float: right; width: 59%; relative: absolute; top: 0px;} +#left-col30 {float: left; width: 30%; relative: absolute; top: 0px;} +#right-col70 {float: right; width: 69%; relative: absolute; top: 0px;}