Index: openacs-4/packages/new-portal/tcl/portal-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.xql,v diff -u -r1.43 -r1.44 --- openacs-4/packages/new-portal/tcl/portal-procs.xql 24 Jul 2004 08:34:42 -0000 1.43 +++ openacs-4/packages/new-portal/tcl/portal-procs.xql 13 Jan 2005 13:58:25 -0000 1.44 @@ -183,14 +183,30 @@ - + update portal_element_map set state = 'hidden' where page_id = :target_page_id + + + + select region, + sort_key, + state, + pd.datasource_id as datasource_id, + pd.name as name, + pem.pretty_name as pretty_name + from portal_element_map pem, + portal_datasources pd + where pem.page_id = :source_page_id + and pem.datasource_id = pd.datasource_id + + + select element_id @@ -349,6 +365,7 @@ and p.template_id = pp.portal_id and pp.page_id = pem.page_id and pem.datasource_id = :ds_id + and pem.name <> 'static_portlet' @@ -635,6 +652,7 @@ where portal_pages.portal_id = :portal_id and portal_element_map.datasource_id = :ds_id and portal_element_map.page_id = portal_pages.page_id + order by portal_element_map.pretty_name