How can I show the seaside toolbar to selected users (using Pier)?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I show the seaside toolbar to selected users (using Pier)?

Matthias Berth-2
Hello,

I am hiding the toolbar (new session, configure, toggle halos etc) by
setting the deployment mode to true  for my application. Now I'd like
to switch the toolbar back on for selected users (i.e. the css
designer). I am using Pier as the basis for my application.

What would be the simplest way to switch on the toolbar selectively?

I have found the short discussion in

  http://lists.squeakfoundation.org/pipermail/seaside/2007-October/014897.html

where Sebastian Sastre sugested to have a component render its own
toolbar. I've tried that, but PRPierFrame delegates its rendering so I
can't sneak in a WAToolFrame.

Keith Hodges subsequently published a helper in
http://lists.squeakfoundation.org/pipermail/seaside/2007-November/015091.html

I cannot get that to work either.

Any suggestions would be very much appreciated :-)

Cheers

Matthias
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How can I show the seaside toolbar to selected users (using Pier)?

Stefan Schmiedl
On Fri, 16 May 2008 11:42:19 +0200
"Matthias Berth" <[hidden email]> wrote:

> What would be the simplest way to switch on the toolbar selectively?

After what I've been doing this week, I'd suggest adding it via
decorations to your component.

s.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How can I show the seaside toolbar to selected users (using Pier)?

keith1y
In reply to this post by Matthias Berth-2
 
> Keith Hodges subsequently published a helper in
> http://lists.squeakfoundation.org/pipermail/seaside/2007-November/015091.html
>
> I cannot get that to work either.
>
>  
You need to load Jetsam. Turn on the configuration in the
configuration.(you might need to add a Configuration ancestor)

Then you need to set the property in the session of the user that you
want to be able to see it. (I think there is an accessor for it)

It does work I use it every day.

Keith


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside