phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: SV: SV: SV: SV: [Phpgroupware-developers] No Navbar, GLOBALS['phpgw_


From: ceb
Subject: Re: SV: SV: SV: SV: [Phpgroupware-developers] No Navbar, GLOBALS['phpgw_info']['flags'][xslt_app],..[headonly]
Date: Sat, 26 Apr 2003 20:17:29 +0200 (CEST)

On Sat, 26 Apr 2003, Sigurd Nes wrote:

> > > > > > > > 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 is where the $GLOBALS['phpgw_info']['flags']['headonly']
> flag
> > > is
> > > > > for.
> > > > > > if this is set, the phpgw_header.xsl tpl is used, which doesnt
> > > show
> > > > > the
> > > > > > navbar.
> > > > > >
> > > > > When I set $GLOBALS['phpgw_info']['flags']['headonly'] - nothing
> but
> > > the
> > > > > 'powered by phpGroupWare version 0.9.15.009' is shown....
> > > > >
> > > >
> > > > i thought this is what you wanted, the output without the
> navbar... of
> > > > course you have to add your content :). the help system is using
> this
> > > in
> > > > head. ok, so i guess i didnt understand your question than... do
> you
> > > want
> > > > to display the navbar or not?
> > > >
> > > Two different issues:
> > > 1) Stop all output in order to download files from vfs - ok with
> > > 'noframework'
> > >
> > > 2) Not to display the navbar for certain windows (e.g lookup), but
> print
> > > the content - how can this be done?
> > >
> >
> > $GLOBALS['phpgw_info']['flags']['headonly'] = True; is the right flag
> for
> > 2)
> > example: help.php
> >
>
> Found it!
> There was a missing <xsl:call-template name="app_data"/> in
> phpgw_header.xsl, now ...['headonly'] works fine - please have a look at
> it.
>
> <xsl:choose>
>  <xsl:when test="$current_app = 'help'">
>   <xsl:call-template name="help"/>
>  </xsl:when>
>  <xsl:otherwise>
>   <xsl:call-template name="app_data"/>
>  </xsl:otherwise>
> </xsl:choose>
>

fixed it, thanks.


> By the way:
> help.php does not catch the $app (not in the link pointing to it)

the new help system is under development, not ready yet. will work like
about and show the current apps manual when opened.

ceb





reply via email to

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