Last change
on this file since 12774 was
10190,
checked in by uli, 11 years ago
|
Add original theme as delivered by Fafalter.
|
File size:
1021 bytes
|
Line | |
---|
1 | from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile |
---|
2 | from plone.app.layout.viewlets.common import ViewletBase |
---|
3 | |
---|
4 | # Sample code for a basic viewlet (In order to use it, you'll have to): |
---|
5 | # - Un-comment the following useable piece of code (viewlet python class). |
---|
6 | # - Rename the viewlet template file ('browser/viewlet.pt') and edit the |
---|
7 | # following python code accordingly. |
---|
8 | # - Edit the class and template to make them suit your needs. |
---|
9 | # - Make sure your viewlet is correctly registered in 'browser/configure.zcml'. |
---|
10 | # - If you need it to appear in a specific order inside its viewlet manager, |
---|
11 | # edit 'profiles/default/viewlets.xml' accordingly. |
---|
12 | # - Restart Zope. |
---|
13 | # - If you edited any file in 'profiles/default/', reinstall your package. |
---|
14 | # - Once you're happy with your viewlet implementation, remove any related |
---|
15 | # (unwanted) inline documentation ;-p |
---|
16 | |
---|
17 | #class MyViewlet(ViewletBase): |
---|
18 | # render = ViewPageTemplateFile('viewlet.pt') |
---|
19 | # |
---|
20 | # def update(self): |
---|
21 | # self.computed_value = 'any output' |
---|
Note: See
TracBrowser for help on using the repository browser.