Re: Re: Maybe a PLIP for portlets?
Mirto Silvio Busico <mbusico-+bmjRK/[email protected]> Thu, 13 May 2004 10:57:45 +0200
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Message-ID | <[email protected]> |
Well, I was not clear. I'll try to explain my mind.
If you look at the skin I've realized (screenshot at
http://plone.org/Members/mbusico/sh1/image_view ) you can see that
portlets are rendered inside a box with a three dimensional aspect.
To obtain this I had to hack all and every portlet used in the plone site.
This is horrible because for every product change I have to change also
the skin.
I have seen that the portlets are rendered using the code inside the
file portlets_fetcher.pt end more precisely with the code line:
<metal:block metal:use-macro="python:path(pathexpr)" />
This should sound good because wrapping the graphic box around this
instruction does the job without touching the portlets.
But there is a problem: if a portlet is defined, but doesn't generate
any output, you obtain an empty graphic box (really more empty boxes
than useful boxes)
So my question: how you can say inside portlets_fetcher.pt if a portlet
generates any output?
Regards
Mirto
P.S. If you cannot access the screenshot, I'll send it to you. Or if you
want to see it by yourself I can send you the whole skin
Michael Zeltner wrote:
> On 2004-05-11 10:19:42 +0200, Mirto Silvio Busico
> <mbusico-+bmjRK/[email protected]> said:
>
>> Can we agree on a standard portlet behaviour?
>
>
> behaviour in what sense?
>
>> I propose: every portlets returns two parameters:
>> return code (if there is any output or not)
>> portlet string (the content that have to be rendered)
>>
>> So it be possible to test if the box have to be rendered or not.
>
>
> thats a wrong approach imo - it would be a lot cleaner if we would
> have the portlets defined as actions - you could set permissions and
> conditions on it. the only problem: how do you attach them to folders?
>
> joe and me thought we could attach it to the pagelets tool, but
> actually i don't think thats a good idea anymore.
>
> regards, michael
--
__________________________________________________________
Mirto Silvio Busico ICT Consultant
Tel. +39 333 4562651
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click