phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [Phpgroupware-developers] Re: filemanager/vfs related stuff + an XS


From: Ralf Becker
Subject: Re: [Phpgroupware-developers] Re: filemanager/vfs related stuff + an XSLT question
Date: Fri, 07 Mar 2003 00:36:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529



Jonathon Sim wrote:
Stupid KMail - looks like ctrl-enter is a shortcut to "send mail" (and its all a small translation from "shift-;")

Anyway:
...

How do I disable the headers and footers and navbar with XSLT? pre-XSLT the filemanager did this:

        $GLOBALS['phpgw_info']['flags']['noheader'] = True;
        $GLOBALS['phpgw_info']['flags']['nonavbar'] = True;
        $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
        $GLOBALS['phpgw_info']['flags']['noappfooter'] = True;

Then when it wanted to output html it did this:
        unset($GLOBALS['phpgw_info']['flags']['noheader']);
        unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
        unset($GLOBALS['phpgw_info']['flags']['noappheader']);
        unset($GLOBALS['phpgw_info']['flags']['noappfooter']);

But it could still spit out raw binary data (just by echoing it) when the user tried to "view".

So how can I disable the XSLT templates so that I can do this : ie output binary data? The XSLT template system doesn't have much documentation, not that I'm volunteering to write any :)

Uups, seems we forgot it!

You can archive the same effect at the moment only by: define('PHPGW_FOOTER_RAN',True); That will stop all output. If you want to output something (eg. echo the content of the file) you have to first call $GLOBALS['phpgw']->common->stop_xslt_capture() or ob_end_clean()

Ralf






--
----------------------------------------------------------------------
Ralf Becker
digital ROCK, Becker & Macht GbR            Telefon +49 (631) 31657-51
Leibnizstraße 17                            Telefax +49 (631) 31657-52
D-67663 Kaiserslautern                 EMail address@hidden





reply via email to

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