-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
28 lines (24 loc) · 1.6 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* modx.startextra.php copyright Abraham Sewill <[email protected]>
*
* modx.startextra is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* modx.startextra is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* modx.startextra; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
A PHP script for starting MODx Extras from modExtra. It does the replacement and directory renaming. To use, run via cli. To use, run via cli: php modx.startextra.php <project_name_ucfirst_plural> <copyright_info_path>
The first arguement passed to the script is the name of your Extra (i.e Doodles). The script currently takes this value and maniputlates it in various ways to make it usable for replacing values. For example:
modExtra -> Doodles
modextra -> doodles
Item -> Doodle
item -> doodle
I tried to find anything this might break, but there still may be important (ExtJS type) things replaced. It is a work in progress.
The second parameter is a path to a file with copyright and license information, in case your name isn't Shaun McCormick. ;-) Perhaps you don't want to release your MODx Extra under the GPL.