On 17/01/2011, at 6:53 PM, Yuri wrote:

Il 16/01/2011 22:16, Geir Bækholt ha scritto:
On 10-01-2011 11:08, Yuri wrote:
Want to show a map in the html? Just drop down, choose map, and you're
done. The "map" variable could take the coordinates from a Location
field or from the context or whatever else (ask for parameters?). Or
fail, log in the error_log, and show nothing. Want to show folder
contents? Just drop down, choose "folder contents", and it is done.
Which folder? The context one, maybe, or what the coder choose.

  What do you think of this approach?

This is the original idea that appeared on the place to Europython 2007 and quickly developed and grew to be the (IMO) much more interesting Deco/Tiles plan.

Deco/Tiles solves exactly what you ask for and has layout control in addition.



I didn't look at Deco in this way :) I can't, with Deco, embed a map INSIDE the html widget, just put a widget before and one after. But, for the user, this is not a natural approach. It is ok for embed a map (or whatever else) in the PAGE, not in a TEXT.

Have a look at 
http://svn.plone.org/svn/plone/plone.app.page/trunk/docs/DESIGN.txt
or just follow the install instructions and try it yourself
http://dev.plone.org/plone/browser/sandbox/plone.app.deco/trunk/docs/INSTALL.txt?rev=38791
You'll probably find it exactly what you're thinking of.



A question? How Deco plays with Diazo? I mean, Deco fetch a page and apply his model, Diazo does similar things over the Deco rendered page?

yes pretty much. Deco controls layout that should be under the control of editors or admins (ie what was content types and portlets) and diazo controls layout from a theme point of view (what you would have done with viewlets, css and template overrides).


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to