[Yanel-dev] Re: Toolbar on/off

Balz Schreier balz.schreier at gmail.com
Wed Dec 29 17:38:11 CET 2010


Hi,

in the meanwhile I implemented this the following way. If you know a more
elegant way, please let me know.
Something like getRequest().isToolbarEnabled() would be cool.

               if
(StateOfView.AUTHORING.equals(getEnvironment().getStateOfView()))
{

                transformer.setParameter(YANEL_TOOLBAR_STATE, "on");

            } else {

                transformer.setParameter(YANEL_TOOLBAR_STATE, "off");

            }

Cheers
Balz

On Wed, Dec 29, 2010 at 5:07 PM, Balz Schreier <balz.schreier at gmail.com>wro=
te:

> Hi,
>
> through which API can I find out whether the toolbar is switched on or of=
f?
>
> Thanks
> Balz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010122=
9/6e51d1ac/attachment.htm


More information about the Yanel-development mailing list