Bulk Page Creator - Version 1.0.5

Version Description

Added a multiple page addition with comma seperation

=

Download this release

Release Info

Developer DaganLev
Plugin Icon wp plugin Bulk Page Creator
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (4) hide show
  1. bulk-page-creator.php +5 -1
  2. my-script.js +12 -0
  3. readme.txt +3 -0
  4. screenshot-1.jpg +0 -0
bulk-page-creator.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Bulk Page Creator
4
Plugin URI: http://solid-code.co.uk/2011/05/bulk-page-creator/
5
Description: Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site.
6
- Version: 1.0.4
7
Author: Dagan Lev
8
Author URI: http://solid-code.co.uk
9
@@ -109,6 +109,10 @@ if (!class_exists("sc_bulk_page_creator")) {
109
?>
110
</ul>
111
<h3>Add pages</h3>
112
<table>
113
<tr>
114
<td>Page Name</td>
3
Plugin Name: Bulk Page Creator
4
Plugin URI: http://solid-code.co.uk/2011/05/bulk-page-creator/
5
Description: Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site.
6
+ Version: 1.0.5
7
Author: Dagan Lev
8
Author URI: http://solid-code.co.uk
9
109
?>
110
</ul>
111
<h3>Add pages</h3>
112
+ <p>
113
+ <input type="checkbox" id="multiPages" name="multiPages" checked="checked" /> Multiple Pages mode<br />
114
+ <small>allows you to create multiple pages by seperating them with a comma; I.E. test1,test2,test3 - will create three pages (do not leave any spaces).</small>
115
+ </p>
116
<table>
117
<tr>
118
<td>Page Name</td>
my-script.js CHANGED
@@ -51,6 +51,18 @@ function sc_add_page(){
51
if(jQuery('#sc-page-name').val()=='') chkfrm += 'Please enter a page name\n';
52
53
if(chkfrm==''){
54
var parent = jQuery('#page_id').val();
55
if(parent==''){
56
parent = -1;
51
if(jQuery('#sc-page-name').val()=='') chkfrm += 'Please enter a page name\n';
52
53
if(chkfrm==''){
54
+ if(jQuery('#multiPages').attr('checked')){
55
+ if(jQuery('#sc-page-name').val().match(/,/)){
56
+ //add multiple pages
57
+ var pageNames = jQuery('#sc-page-name').val().split(",");
58
+ for(ipnames=0;ipnames<pageNames.length;ipnames++){
59
+ jQuery('#sc-page-name').val(pageNames[ipnames]);
60
+ sc_add_page();
61
+ }
62
+ //exit the process
63
+ return false;
64
+ }
65
+ }
66
var parent = jQuery('#page_id').val();
67
if(parent==''){
68
parent = -1;
readme.txt CHANGED
@@ -34,6 +34,9 @@ Added a trigger when pressing enter on the page name to add it automatically to
34
= 1.0.4 =
35
Added a "draft" option to publish pages in draft status
36
37
== Screenshots ==
38
39
1. View of bulk page creator screen
34
= 1.0.4 =
35
Added a "draft" option to publish pages in draft status
36
37
+ = 1.0.5 =
38
+ Added a multiple page addition with comma seperation
39
+
40
== Screenshots ==
41
42
1. View of bulk page creator screen
screenshot-1.jpg CHANGED
Binary file