Skip to content

A Textpattern plugin. Copies the current article content to a new one.

License

Notifications You must be signed in to change notification settings

trenc/yab_copy_to_new

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

yab_copy_to_new

Displays a new button in article write tab to copy the current article to a new one.

Version: 0.2

Table of contents

  1. Plugin requirements
  2. Configuration
  3. Changelog
  4. License
  5. Author contact

Plugin requirements

yab_copy_to_new’s minimum requirements:

  • Textpattern 4.x
  • Modern browser capable of HTML5 sessionStorage

Configuration

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 by position_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

Changelog

  • v0.1: 2014-02-06
    • initial release
  • v0.2: 2014-04-11
    • feature: enhanced config for placing/styling the button

Licence

This plugin is released under the GNU General Public License Version 2 and above

Author contact

About

A Textpattern plugin. Copies the current article content to a new one.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages