Displays a new button in article write tab to copy the current article to a new one.
Version: 0.2
yab_copy_to_new’s minimum requirements:
- Textpattern 4.x
- Modern browser capable of HTML5 sessionStorage
Install and activate the plugin.
The following form fields will not be copied by default:
- all of hidden type
- an exclude array of posted day and time and the url_title
You can modify this exclude array on your own,
The function yab_ctn_config() contains an array with some config values and a commented example of the array which places the button near the top »Create new button«.
'exclude'
: Javascript array with field to excluded from copying'position_selector'
: a valid jQery selector (used byposition_method
)'position_method'
: any jQuery DOM insert method (after, prepend, append, before etc.)'class'
: html class applied to teh button'style'
: inline style attribute aplied to the button
- v0.1: 2014-02-06
- initial release
- v0.2: 2014-04-11
- feature: enhanced config for placing/styling the button
This plugin is released under the GNU General Public License Version 2 and above
- Version 2: http://www.gnu.org/licenses/gpl-2.0.html
- Version 3: http://www.gnu.org/licenses/gpl-3.0.html