phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] current state of HEAD


From: ceb
Subject: [Phpgroupware-developers] current state of HEAD
Date: Fri, 15 Nov 2002 01:29:13 +0100 (CET)

hey,
i just finished porting the framework of phpgw to use xslt. all layouts
but linux-at-work are working.
to adapt the applications to work with xslt you dont have to change them
complettly to use xslt. apps which use the old html tpl class
(class.Templates.inc.php) will continue to work within the xslt framework
after some minor changes. for now i added an option to setup.inc.php

$GLOBALS['phpgw_info']['server']['support_old_style_apps'] = True;

which enables php output buffering for nonadapted applications (coded by
ralfbecker, thanks :)).
this is a temporarily option to make it easier to port the applications.
this option will not be included in the next release. you can disable it
by setting it to False to find out what has to change to make the apps
working with the xslt framework.

there are 3 different ways to port the apps:
1. port it to xslt using class.xslttemplates.inc.php (example: notes)
2. port it to etemplates using the etemplate app (example: et-media, infolog)
3. port it to the last version of the html tpl class
   (class.Templates.inc.php)

the changes for 3. are:

use $GLOBALS['phpgw']->template
you dont need to create a new $tpl object within your app.

to send your apps output to the xslt tpl use:

        $GLOBALS['phpgw']->xslttpl->set_var('phpgw',array
        (
                'body_data' =>
$GLOBALS['phpgw']->template->parse('out','{tpl_name}')
        ));

adapt the {tpl_name}.
dont use the pparse or pp function anymore.

the layout settings aren't stored in the phpgw_info array anymore. the
layouts are using css files.

for the alternate row colors you can continue to use the function
alternate_row_colors() in class nextmatchs. the name for the colors is
row_on / row_off. the table header color is th. im going to add some
comments to the phpgwapi/templates/default/css/default phpgw.css/submarine
css files.

each layout supports now its own themes, stored in
phpgwapi/templates/{layout}/css. so not all themes are available
for all layouts anymore. the phpgw.css file describes basic layout
settings. the {theme}.css file describes the special theme settings like
colors.

if you would like to port your app and get some questions, dont wait to
ask. if you have problems with the xslt framework - it isnt tested on win
servers at all - or if you get some suggestions please tell me.

thanks to ralfbecker for helping me make the old_tpl class/apps
working with the xslt framework, for porting the verdilak layout to xslt
and for the great bugfixes in the calendar app in 0.9.14.

grtx. ceb





reply via email to

[Prev in Thread] Current Thread [Next in Thread]