Index: openacs-4/contrib/packages/portal/tcl/portal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/tcl/portal-procs.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/contrib/packages/portal/tcl/portal-procs.tcl 13 Feb 2004 20:00:46 -0000 1.14 +++ openacs-4/contrib/packages/portal/tcl/portal-procs.tcl 17 Feb 2004 01:33:57 -0000 1.15 @@ -355,32 +355,31 @@
- Change Theme: -
" + $one_theme_chunk" + append theme_chunk "\n" } - append theme_chunk "
" - append template "$theme_chunk" + append template "$theme_chunk\n + + + \n" - # - # Per-page template chunks - # + set page_ids [get_page_list -portal_id $portal_id] set show_avail_p 0 set show_html "\n" - set list_of_page_ids [get_page_list -portal_id $portal_id] + if { $show_avail_p } { + append template " +
+
+ + + + + $show_html + \n +
+
\n" + } - foreach page_id $list_of_page_ids { + # + # Per-page template chunks + # + set page_id "" + for { set page_num 0 } { $page_num < [llength $page_ids] } {incr page_num} { + set prev_page_id $page_id + set page_id [lindex $page_ids $page_num] + if { $page_num == [llength $page_ids] - 1 } { + set next_page_id "" + } else { + set next_page_id [lindex $page_ids [expr {$page_num + 1}]] + } + set first_page_p [portal::page::first_page_p -portal_id $portal_id -page_id $page_id] set page_name [portal::page::get_name -page_id $page_id] set page_layout_id [portal::page::get_layout_id -page_id $page_id] @@ -417,21 +440,6 @@ " append template "$page_name_chunk" - if { $show_avail_p } { - set show_html_form " -
- - - - - - $show_html - \n -
" - } else { - set show_html_form "" - } - if {[portal::page::has_visible_elements -page_id $page_id] || $first_page_p} { # @@ -440,37 +448,40 @@ db_1row portal_and_page_info_select {} -column_array portal - # fake some elements for the in the template - foreach region [portal::layout::get_region_list -layout_id $portal(layout_id)] { - lappend fake_element_ids($region) $portal_id - } - set element_list [array get fake_element_ids] append template " - " if { ![portal::page::has_visible_elements -page_id $page_id] } { append template " + \n" - - # clear out the region array - array unset fake_element_ids + append template "" } + append template "\n" if {![portal::page::has_visible_elements -page_id $page_id]} { @@ -494,7 +505,6 @@ - $show_html_form " } Index: openacs-4/contrib/packages/portal/www/place-element.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/www/Attic/place-element.adp,v diff -u -r1.4 -r1.5 --- openacs-4/contrib/packages/portal/www/place-element.adp 15 Feb 2004 22:48:21 -0000 1.4 +++ openacs-4/contrib/packages/portal/www/place-element.adp 17 Feb 2004 01:33:58 -0000 1.5 @@ -39,10 +39,22 @@ move up + + + + move up + + move down + + + + move down + + @@ -53,7 +65,7 @@ move left - move right + move right @@ -65,16 +77,18 @@ +
" +
No Elements on this page
" } else { - append template " - \n" + set regions [portal::layout::get_region_list -layout_id $portal(layout_id)] + set num_regions [llength $regions] + set region_width [expr {int(100/$num_regions)}] + foreach region $regions { + append template " +
+ \n" + } } - append template "$show_html_form
- -
+ + +

Index: openacs-4/contrib/packages/portal/www/place-element.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/www/Attic/place-element.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/contrib/packages/portal/www/place-element.tcl 11 Jan 2004 01:08:00 -0000 1.2 +++ openacs-4/contrib/packages/portal/www/place-element.tcl 17 Feb 2004 01:33:58 -0000 1.3 @@ -29,8 +29,6 @@ element_multi:multirow } -set num_regions [portal::layout::get_region_count -layout_id $layout_id] - template::multirow create element_multi \ element_id \ name \