=== Post Templates === Contributors: vprat Donate link: http://post-templates.vincentprat.info Tags: post, model, templates, page, posts, manage Requires at least: 2.3 Tested up to: 2.3 Stable tag: 2.0 A plugin for wordpress which allows you to send an e-mail to your registered blog users, based on their role. == Description == It happens quite often that a blogger publishes posts or static pages on a regular basis which have the same structure. Think about for example a "picture of the day" daily post. With current wordpress state, we need to spend a lot of time doing copy/paste between posts instead of actually writing content. Be happy because I have developped the missing plugin to maintain post templates and allow simple writing of regular posts. [plugin home page](http://post-templates.vincentprat.info). This plugin is available under the GPL license, which means that it's free. If you use it for a commercial web site, if you appreciate my efforts or if you want to encourage me to develop and maintain it, please consider making a donation using Paypal, a secured payment solution. You just need to click the button on the [plugin home page](http://post-templates.vincentprat.info) and follow the instructions. == Installation == To install the plugin, nothing simpler: - If you have a previous version of the plugin installed, you first need to deactivate it and delete the plugin folder. - Unzip the latest version and put the folder post-template inside your wordpress "wp_content/plugins" folder. - Finally, activate the plugin using your wordpress administration interface. - If you want, go to the plugin options page in order to import/delete the templates from previous plugin versions. == Options == The plugin adds a configuration page labelled Post templates inside the option panel of the administration interface. For now, it just offers some help to understand how the plugin allows or forbids access to certain functions. Post Templates uses capabilities to define what users are allowed to do. On the options page is a list of the capabilities used by the plugin and the default user role allowed to make these actions. If you want to change the roles having those capabilities, you should use the [Role Manager](http://www.im-web-gefunden.de/wordpress-plugins/role-manager/) plugin. This page also allows to import/delete the templates from previous plugin versions. == Use == **Creating a template from scratch** You can create a template for pages or posts directly from the Write menu. When you are done filling the blanks, just save the template. **Creating a template from a post or a page** If you go to the "manage posts" or "manage pages" pages, you will see an additional column in the list that reads "Templatize". Clicking on that link will allow you to transform a post or a page into a template. The template will be created using the post/page fields and you will then be directed to the template edit page in order to modify it if needed. Remember that template creation is only accessible if you have the required user level or "role". **Creating a post or a page from a template** To create a post or a page from a template, nothing simpler. Get to the template management page inside the "Manage" panel of the administration console. The templates are listed and you get access (according to the permissions) to 3 functions : delete the template, edit the template and make a new post (or page according to the template type) from the template. Clicking the "New post" or "New page" link will create a post/page from this template and take you to the post/page edition page. This new post/page is still a draft, you will then need to edit it and publish it. == Change log == **v2.0** [+] Compatible with WP 2.3 [+] Complete rewrite of the plugin to get rid of the clumsy dependance to the post table and enhance user friendliness [+] Easily edit templates [+] Import templates from previous Post Templates plugin versions (1.x) [+] Makes use of the plugin "Manage Pages Custom Columns" by Edward Dale [+] Makes use of the WordPress capabilities system to define permissions [+] Improved plugin compatibility with future WP releases (less direct queries to WP database) **v1.2** [+] Added support for internationalization with POT files. **v1.1.3** [*] Corrected the links that got messed up due to moving the plugin to the WordPress.org hosting (changing names) **v1.1.1** [*] Corrected the bug linked to the call to function wp_get_current_user (compatibility for WP2.x) [*] Corrected the bug linked to the call to function js_escape (compatibility for WP2.x) **v1.1** [+] Showing the active version in option page (deactivate and activate again to update) [+] Templates for pages [+] Button in the post edit page to make a template from current post [+] Button in the page edit page to make a template from current page [*] Checking that function wp_nonce_url exists (compatibility for WP2.x)