Pier Widget

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

Pier Widget

Oleg Korsak
Hello everybody :)

How can I create a widget in Pier? For example I want to create PRHeaderWidget clone as PRKamikazeHeaderWidget. I have a second PRKernel instance named 'kamikaze', so I want to use my own Header here, but the original one in the default instance. I've tried to create simple PRCommandWidget, but after that I had two "Commands" in the Environment->Header->[Edit]->Component class.


Thanks :)



_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier Widget

Lukas Renggli-2
> How can I create a widget in Pier?

Essentially a widget is just a Seaside component, except that it's a  
subclass of PRWidget.

> For example I want to create PRHeaderWidget clone as  
> PRKamikazeHeaderWidget. I have a second PRKernel instance named  
> 'kamikaze', so I want to use my own Header here, but the original  
> one in the default instance.

Go to the /environment/header, click on Edit and select your  
component instead of the default one.

> I've tried to create simple PRCommandWidget, but after that I had  
> two "Commands" in the Environment->Header->[Edit]->Component class.

Change the #label method on the class site, to tell them apart.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch



_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki