phpgroupware-developers
[Top][All Lists]
Advanced

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

SV: [Phpgroupware-developers] No Navbar, GLOBALS['phpgw_info']['flags'][


From: Sigurd Nes
Subject: SV: [Phpgroupware-developers] No Navbar, GLOBALS['phpgw_info']['flags'][xslt_app],..[headonly]
Date: Fri, 25 Apr 2003 09:12:08 +0200

> ceb:
> hey sigurd,
> 
> * your 'xslt_app- flag' question:
> 
> this is a temporarily flag and will be removed when more apps are
ported
> to xslt. since xslt is preferred, all apps which dont use it will have
to
> set a a html_app or etemplate_app flag. its not possible to just set
the
> flag in the main index.php file, because within the menuactions this
file
> isnt used. so please set the flag for now in the constructors of your
ui
> classes.
> 
> to disable any xslt output use
> $GLOBALS['phpgw_info']['flags']['noframework'] = True;
> and tell me please if this works for you, i just added it.
> 

Yes it works - provided
$GLOBALS['phpgw_info']['server']['support_old_style_apps'] = False

Thanks

Now - how can I get rid of the navbar (for lookup-windows) - I presume I
could use 'noframework' - and then echo the output from parse in
xslttemplates.

$this->create_html=CreateObject('phpgwapi.xslttemplates');
$this->create_html->add_file(array(PHPGW_SERVER_ROOT . SEP .
$this->currentapp . SEP . 'templates' . SEP . 'default' . SEP .
'lookup_template'));

$this->create_html->set_var('phpgw',array('some_lookup' => $data));
echo $this->create_html->parse();

Sigurd






reply via email to

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