{ "info": { "author": "Rob Gietema", "author_email": "rob@fourdigits.nl", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "Introduction\n============\n\n``collective.tinymcetemplates`` is a Plone 3 add-on that provides a TinyMCE\nplugin that allows authors to insert *templates* and *snippets* into the page.\n\nInstallation\n============\n\nAdd ``collective.tinymcetemplates`` to your buildout in the ``eggs`` list, or\nas a dependency in the ``install_requires`` list in the ``setup.py`` file\nfor a product that is already installed in your build. The package's\nconfiguration is loaded automatically by Plone.\n\nYou must also install the product in Plone's Add-on control panel.\n\nUsage\n=====\n\nContent authors can use the new Template button to insert templates into\nthe page.\n\nTemplates are created and managed as standard Plone Pages:\n\n* The Page title is used as the template title\n* The Page description is used as the template description.\n* The Page body is used as the the template content.\n\n*Hint:* If you don't want templates to show up in search results, remember\nthat they need only be accessible to content authors at edit time. You can\nthus put them in a workflow state that gives content authors access. You can\nalso restrict access to templates in this way: an author will not see a\ntemplate built from a Page he does not have the permission to see.\n\nTo create some templates, the quickest option is to create a Folder with the\nid \"templates\" in the root of the site and put one or more Pages in this\nfolder.\n\n*Hint:* You can tick the \"exclude from navigation\" button on the templates\nfolder to make sure it doesn't show up in the portal tabs or navigation tree.\n\nIt's possible to set a different path for templates, and to list multiple\nfolders. In the configuration registry, as managed by `plone.app.registry`_,\nthe template paths are listed under the key\n``collective.tinymcetemplates.templateLocations``. This contains a tuple of\npaths to pages or folders of pages, relative to the portal root. You can\nalso use GenericSetup to manipulate this list. See `plone.app.registry`_ for\ndetails.\n\nWorking with the user's selection\n---------------------------------\n\nYou can insert the user's current editor selection into your template. To do\nthis, you need to add a placeholder div or span with the class ``selcontent``.\nFor example::\n\n
\n You said: (your content here)\n
\n We think this is wrong!\n