Hi Laurent,

I think I like the second option better.  One thing
I'm not sure about: how do I know if my coplet has
returned any content when I render the window?  IIUTC,
when portal renders the coplet window, the actual
coplet content is not included yet (this is done later
with cinlcude transformer).  Is this correct?

Thanks,
-Alex

--- Laurent Trillaud <[EMAIL PROTECTED]> wrote:
> Alex
> I see 2 solutions: the first one is easy to do but
> it's just an hack. The
> second is, in my opinion, a better way but I haven't
> tested it.
> I suppose that you can check if a coplet as data by
> any input module
> 1. The easy way
> The goal is to modify the
> skins/.../styles/window.xsl. Put the code inside a
> DIV with the style 'visibility' set à show or hide
> depend of a parameters in
> the XSL got from the layout/portal.xml with the tag
> <parameter name=""
> value=""/>
> 2. The better way
> The goal is to create another aspect for a coplet
> called for exemple
> 'coplet-visibility'. You must declare it in the
> cocoon.xconf (use the
> coplet-full-screen as sample) and declare this new
> aspect in the the
> renderer window).
> Then you will be able to hide or show a coplet with
> the same way that you
> minimize or maximize a coplet.
> Good Luck ;-)
> Laurent
> 
> 
> > -----Message d'origine-----
> > De : Alex Romayev [mailto:[EMAIL PROTECTED]
> > Envoyé : mercredi 3 mars 2004 13:35
> > À : [EMAIL PROTECTED]
> > Objet : RE: [portal] Minimizing coplets events
> > 
> > Hi Laurent,
> > 
> > Can you elaborate on the last piece.  I'd like to
> be
> > able to show a coplet when it has data and hide
> when
> > nothing is returned.  I'm not sure how I would
> control
> > this with a renderer.
> > 
> > Thanks,
> > -Alex
> > 
> > --- Laurent Trillaud <[EMAIL PROTECTED]> wrote:
> > > Jean-Christophe
> > > Minimize a coplet with the default renderer,
> isn't
> > > to show or hide a coplet
> > > but to minimize or restore. The title bar is
> still
> > > visible!
> > > If you want to do this you need to send an event
> to
> > > the coplet and change de
> > > aspectDatas/size. Use aspectDatas/fullScreen to
> > > mazimize it.
> > > Now if you really want to hide a coplet you need
> to
> > > change the renderer or
> > > create a new one, and then use the same event
> > > mechanism.
> > > Laurent Trillaud
> > >
> > > > Hello,
> > > > I'd like to send minimize events from one
> portlet
> > > to another.
> > > > This way, I have a kind of menu that is able
> to
> > > show the right portlet
> > > > just by showing or hiding it.
> > > > Is it possible ? How ?
> > > >
> > > > Thanks
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to