Re: Re: Maybe a PLIP for portlets?
Michael Zeltner <mzeltner-Qu2Fn+blMuyTtA8H5PvdGFaTQe2KTcn/@public.gmane.org> Sat, 15 May 2004 12:44:02 +0200
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Organization | Netalley Networks |
| Message-ID | <[email protected]> |
On 2004-05-13 15:49:06 +0200, Mirto Silvio Busico <mbusico-+bmjRK/[email protected]> said: >> I think this is very difficult because the portlets are rendered as >> macros in the context of the template. This has the andvantage that you >> can refer to variables defined in the template that calls the portlet. > > Well, in this case can we use a variable defined in the page template > (a name could be "render_me") that the called portlet must set in order > to communicate to the page template if there is anything to render? that sounds very slow and not very clean. or like a portlet object. however, with the way portlets are currently rendered, the conditions inside the template, it's very hard to do what you want (if i get everything right). we've got to move the conditions and permissions somewhere else, in the best case in an action provider. if we have the conditions somewhere else we can check if there is anything to display, if not, don't display the column. >> In other words, the whole portlet concept needs to be rewritten for >> this functionality. That would break backward compatibility again. I >> might be wrong though. >> > There is any work in progress in this area? Any PLIP? Maybe this can be > work for Plone 2.2? somehow, but not exactly. see PLIP11 http://plone.org/development/plips/PLIP11 it's similiar but not aiming at portlets. regards, michael -- Michael Zeltner Netalley Networks LLP http://www.netalleynetworks.com/ ------------------------------------------------------- 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