From: Chris W. <la...@us...> - 2004-10-02 23:17:05
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/base_page/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22552/template Modified Files: page_displayable.tmpl Log Message: OIN-60: parse out the box declarations for a page into add/remove Index: page_displayable.tmpl =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/base_page/template/page_displayable.tmpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** page_displayable.tmpl 25 Mar 2003 02:40:22 -0000 1.1 --- page_displayable.tmpl 2 Oct 2004 23:15:11 -0000 1.2 *************** *** 1,11 **** [% OI.page_title( page.title ); ! OI.main_template( page.main_template ); -%] ! [%- FOREACH box_name = boxes; ! IF box_name.match( '^-' ); ! OI.box_remove( box_name ); ! ELSE; ! OI.box_add( box_name ); ! END; ! END -%] ! [% content %] --- 1,10 ---- [% OI.page_title( page.title ); ! OI.main_template( page.main_template ); ! FOREACH box_name = box_add; ! OI.box_add( box_name ); ! END; ! FOREACH box_name = box_remove; ! OI.box_remove( box_name ); ! END; ! -%] [% content %] |