|
|
- Info
Products.FileTemplate
Pre-filled file templates
Project Description
The basic idea is that this product provides a Type Information
subclassing from Factory-based Type Information which on creation
uploads a Template file sitting on the server to the newly-created
object.
- Go to portal_types tool
- Choose Template-based Factory Information
- Set a id (eg: "Vacation")
- Choose a base type (eg: "CMFDefault: Portal File")
Done. You created a new object type. Now for the template.
- Go to the portal_file_templates tool
- Create a File, use the same id as you used above (eg: "Vacation")
- Upload the template content to this file
Now anytime you create a new object of this type it will come
pre-filled with the contents of the template file.
- The type you choose as base must support WebDAV PUT for the file
you set as template.
- The content type of the template file is passed through PUT to the
content. That should be enough to satisfy Archetypes. There's no way
to control the filename passed to PUT for now.
- SYSTEMSINTERNAL-424 Removed Tabindex
[john]
- added Trove classifiers
- SYSTEMSINTERNAL-370, SYSTEMSINTERNAL-371, SYSTEMSINTERNAL-372,
SYSTEMSINTERNAL-373: prepared product for being open sourced [Raj Shah]
|
-
May
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
| 1 | 2 | 3 | 4 | 5 | 6 |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | | | |
|