[Zope3-Users] Intended scope of viewlets?

ksmith93940-dev at yahoo.com ksmith93940-dev at yahoo.com
Thu Oct 5 15:47:49 EDT 2006


Hi Alec,

Zope3demos has been updated with a stripped down
example of Jürgen at Lovely Systems "no macro" masterpage design. You
can get it from the trunk at

svn checkout http://zope3demos.googlecode.com/svn/trunk/ zope3demos

Should be good as of R35.

FYI: There was a major refactoring of the package layout and url names. e.g. the index page is now reachable from
http://localhost:8080/@@z3d.index.html

Requires: z3c.viewtemplate, zope.viewlet, zope.contentprovider


project page/bug collector: http://code.google.com/p/zope3demos/
 


Kevin Smith
Monterey County Weekly newspaper
Director of New Media


----- Original Message ----
From: Alec Munro <alecmunro at gmail.com>
To: "zope3-users at zope.org" <zope3-users at zope.org>
Sent: Thursday, October 5, 2006 9:23:12 AM
Subject: [Zope3-Users] Intended scope of viewlets?

Hi List,

I'm just getting up to speed with viewlets, having read a thread here
and there in the past about them. I've installed the examples provided
on this list, and while I believe I understand how they work, I don't
understand in what circumstances they are most useful. The viewlets in
the examples are all very small, such as retrieving an formatting a
single piece of information about an object. However, from some of the
posts to this list, I get the impression they are also being used for
more complex items, like navigation menus.
Is there a recommended scope? Can they be described in a way such as
"develop your templates up to point X, then use a viewlet for
development of further depth?".

In my case, I am developing a new skin for a project, and my
experience with metal says to make the entire HTML page a macro with
slots for content and navigation. Is there a comparable viewlet-based
paradigm?

Also, am I correct in stating that when working with viewlets, the
only complete HTML page will be the primary skin file, with all
viewlets based on snippets of HTML?

My questions are fairly broad-ranging, I know, but I have thus far
been unable to find a straightforward explanation of viewlets, in
terms of how they relate to general site development.

Thanks,

Alec
_______________________________________________
Zope3-users mailing list
Zope3-users at zope.org
http://mail.zope.org/mailman/listinfo/zope3-users





More information about the Zope3-users mailing list