{ "info": { "author": "Shane Hathaway", "author_email": "shane@hathawaymix.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Plone", "Framework :: Zope2", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Programming Language :: Python", "Topic :: Software Development" ], "description": "Contents\n========\n\n- `Introduction`_\n- `How to use CompositePage`_\n- `How to write a template`_\n- `How it works`_\n- `Adapting CompositePage to other applications`_\n\n\n\nIntroduction\n============\n\nCompositePage is a way to assemble web pages from page fragments.\nThrough the use of Zope page templates, browser-based drag and drop, and\ncustom context menus, CompositePage makes it easy to visually combine\npage fragments into complete pages.\n\nCompositePage supercedes the PageDesign product and makes use of\nPDLib, a Javascript library. CompositePage is designed for browsers\nthat support the DOM (Document Object Model) and CSS (Cascading Style\nSheets) level 2: Firefox, Internet Explorer 5+, Opera, Konqueror, etc.\n\n\n\nHow to use CompositePage\n========================\n\nFollow these steps:\n\n- Install the CompositePage product in Zope by unpacking the archive\n into your Products directory. I've tested only with a current Zope\n checkout, which is something like Zope 2.7.\n\n- Create a Composite Tool instance in a central location, possibly the\n root folder.\n\n- Create a Composite object. On the creation form, there is a\n checkbox for creating a sample template. Leave the checkbox checked.\n\n- Visit the Composite object and select the \"Design\" tab. You should\n see a three-column layout with blue dotted lines in the places where\n you are allowed to insert content.\n\n- Click just beneath one of the blue lines. A context menu will pop\n up. Select \"Add...\".\n\n- You will be directed to a slot (a folderish object.) In slots, you\n can add composite elements. Add a composite element that points to a\n script.\n\n- Find the composite created earlier and select the \"Design\" tab\n again. Your new object should now show up in the slot.\n\n- Move the object to a different slot using drag and drop. When the\n mouse cursor is hovering over a permitted target (the blue dotted\n lines are targets), the target will be highlighted. Let go and watch\n your object appear in the new place.\n\n- Right-click over your object and select \"Delete\" from the context\n menu.\n\n\nHow to write a template\n=======================\n\nTemplates can be any Zope object, but ZPTs (Zope Page Templates) are\nthe most common. A template designed for use with composites uses the\n'slots' attribute of the composite. The 'slots' attribute is a\nmapping-like object.\n\nHere is a simple composite-aware page template::\n\n \n
\n \n \n